mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-06 01:57:40 +08:00
ui: fine tune
This commit is contained in:
@@ -186,16 +186,13 @@ class _MainSkeletonState extends State<MainSkeleton> {
|
|||||||
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
|
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
|
||||||
// Here we take the value from the MyHomePage object that was created by
|
// Here we take the value from the MyHomePage object that was created by
|
||||||
// the App.build method, and use it to set our appbar title.
|
// the App.build method, and use it to set our appbar title.
|
||||||
title: const Row(
|
title: Text("Polaris"),
|
||||||
children: [
|
|
||||||
Text("Polaris"),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
actions: [
|
actions: [
|
||||||
SearchAnchor(
|
SearchAnchor(
|
||||||
builder: (BuildContext context, SearchController controller) {
|
builder: (BuildContext context, SearchController controller) {
|
||||||
return Container(
|
return Container(
|
||||||
constraints: const BoxConstraints(maxWidth: 300, maxHeight: 40),
|
constraints: const BoxConstraints(maxWidth: 250, maxHeight: 40),
|
||||||
child: Opacity(
|
child: Opacity(
|
||||||
opacity: 0.8,
|
opacity: 0.8,
|
||||||
child: SearchBar(
|
child: SearchBar(
|
||||||
|
|||||||
@@ -45,14 +45,14 @@ class _SystemSettingsPageState extends ConsumerState<SystemSettingsPage> {
|
|||||||
),
|
),
|
||||||
ExpansionTile(
|
ExpansionTile(
|
||||||
expandedAlignment: Alignment.centerLeft,
|
expandedAlignment: Alignment.centerLeft,
|
||||||
childrenPadding: EdgeInsets.fromLTRB(20, 0, 50, 0),
|
childrenPadding: EdgeInsets.fromLTRB(20, 0, 20, 0),
|
||||||
initiallyExpanded: false,
|
initiallyExpanded: false,
|
||||||
title: Text("存储"),
|
title: Text("存储"),
|
||||||
children: [StorageSettings()],
|
children: [StorageSettings()],
|
||||||
),
|
),
|
||||||
ExpansionTile(
|
ExpansionTile(
|
||||||
expandedAlignment: Alignment.centerLeft,
|
expandedAlignment: Alignment.centerLeft,
|
||||||
childrenPadding: EdgeInsets.fromLTRB(20, 0, 50, 0),
|
childrenPadding: EdgeInsets.fromLTRB(20, 0, 20, 0),
|
||||||
initiallyExpanded: false,
|
initiallyExpanded: false,
|
||||||
title: Text("通知客户端"),
|
title: Text("通知客户端"),
|
||||||
children: [NotifierSettings()],
|
children: [NotifierSettings()],
|
||||||
|
|||||||
@@ -38,8 +38,7 @@ class _DetailCardState extends ConsumerState<DetailCard> {
|
|||||||
margin: const EdgeInsets.all(4),
|
margin: const EdgeInsets.all(4),
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
child: Container(
|
child: Container(
|
||||||
constraints:
|
constraints: BoxConstraints(maxHeight: 400),
|
||||||
BoxConstraints(maxHeight: 400),
|
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
image: DecorationImage(
|
image: DecorationImage(
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
@@ -91,16 +90,16 @@ class _DetailCardState extends ConsumerState<DetailCard> {
|
|||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
shape: ContinuousRectangleBorder(
|
shape: ContinuousRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(100.0)),
|
borderRadius: BorderRadius.circular(100.0)),
|
||||||
label: Text("${widget.details.resolution}"),
|
label: Text(
|
||||||
|
"${widget.details.storage!.name}: ${widget.details.mediaType == "tv" ? widget.details.storage!.tvPath : widget.details.storage!.moviePath}"
|
||||||
|
"${widget.details.targetDir}"),
|
||||||
padding: EdgeInsets.all(0),
|
padding: EdgeInsets.all(0),
|
||||||
),
|
),
|
||||||
Chip(
|
Chip(
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
shape: ContinuousRectangleBorder(
|
shape: ContinuousRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(100.0)),
|
borderRadius: BorderRadius.circular(100.0)),
|
||||||
label: Text(
|
label: Text("${widget.details.resolution}"),
|
||||||
"${widget.details.storage!.name}: ${widget.details.mediaType == "tv" ? widget.details.storage!.tvPath : widget.details.storage!.moviePath}"
|
|
||||||
"${widget.details.targetDir}"),
|
|
||||||
padding: EdgeInsets.all(0),
|
padding: EdgeInsets.all(0),
|
||||||
),
|
),
|
||||||
widget.details.limiter != null &&
|
widget.details.limiter != null &&
|
||||||
@@ -139,7 +138,7 @@ class _DetailCardState extends ConsumerState<DetailCard> {
|
|||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const Text("",style: TextStyle(height: 1)),
|
const Text("", style: TextStyle(height: 1)),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
|
|||||||
Reference in New Issue
Block a user