wip: drawer.
This commit is contained in:
@@ -16,18 +16,27 @@ class LocalManager extends StatelessWidget {
|
|||||||
return AnimatedContainer(
|
return AnimatedContainer(
|
||||||
duration: Duration(milliseconds: 300),
|
duration: Duration(milliseconds: 300),
|
||||||
curve: Curves.easeInOut,
|
curve: Curves.easeInOut,
|
||||||
color: context.t.backgroundColor,
|
|
||||||
width: isOpen ? 200 : 36,
|
width: isOpen ? 200 : 36,
|
||||||
child: Column(
|
child: OverflowBox(
|
||||||
children: [
|
alignment: Alignment.centerRight,
|
||||||
OverflowBox(
|
maxWidth: 200,
|
||||||
child: SizedBox(
|
minWidth: 200,
|
||||||
width: 200,
|
child: Material(
|
||||||
child: Row(
|
color: context.t.backgroundColor,
|
||||||
|
elevation: 20,
|
||||||
|
child: Column(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Flexible(
|
Flexible(
|
||||||
child: Text("本地配置"),
|
child: Center(
|
||||||
|
child: Text(
|
||||||
|
"本地配置",
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () => context.read<ContentLayoutProvider>().setProps(localManagerOpened: !isOpen),
|
onPressed: () => context.read<ContentLayoutProvider>().setProps(localManagerOpened: !isOpen),
|
||||||
@@ -37,9 +46,9 @@ class LocalManager extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user