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