mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 04:00:28 +08:00
opt ui
Closes #1050 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -33,7 +33,7 @@ class _DynamicsPageState extends State<DynamicsPage>
|
||||
child: IconButton(
|
||||
tooltip: '发布动态',
|
||||
style: ButtonStyle(
|
||||
padding: WidgetStateProperty.all(EdgeInsets.zero),
|
||||
padding: const WidgetStatePropertyAll(EdgeInsets.zero),
|
||||
backgroundColor: WidgetStatePropertyAll(
|
||||
theme.colorScheme.secondaryContainer,
|
||||
),
|
||||
@@ -90,8 +90,10 @@ class _DynamicsPageState extends State<DynamicsPage>
|
||||
super.build(context);
|
||||
ThemeData theme = Theme.of(context);
|
||||
return Scaffold(
|
||||
resizeToAvoidBottomInset: false,
|
||||
backgroundColor: Colors.transparent,
|
||||
appBar: AppBar(
|
||||
primary: false,
|
||||
leading: upPanelPosition == UpPanelPosition.rightDrawer
|
||||
? _createDynamicBtn(theme, false)
|
||||
: null,
|
||||
@@ -127,11 +129,11 @@ class _DynamicsPageState extends State<DynamicsPage>
|
||||
: [_createDynamicBtn(theme)],
|
||||
),
|
||||
drawer: upPanelPosition == UpPanelPosition.leftDrawer
|
||||
? SafeArea(child: upPanelPart(theme))
|
||||
? upPanelPart(theme)
|
||||
: null,
|
||||
drawerEnableOpenDragGesture: true,
|
||||
endDrawer: upPanelPosition == UpPanelPosition.rightDrawer
|
||||
? SafeArea(child: upPanelPart(theme))
|
||||
? upPanelPart(theme)
|
||||
: null,
|
||||
endDrawerEnableOpenDragGesture: true,
|
||||
body: Row(
|
||||
|
||||
@@ -230,8 +230,8 @@ class AuthorPanel extends StatelessWidget {
|
||||
height: 32,
|
||||
child: IconButton(
|
||||
tooltip: '更多',
|
||||
style: ButtonStyle(
|
||||
padding: WidgetStateProperty.all(EdgeInsets.zero),
|
||||
style: const ButtonStyle(
|
||||
padding: WidgetStatePropertyAll(EdgeInsets.zero),
|
||||
),
|
||||
onPressed: () => morePanel(context),
|
||||
icon: const Icon(Icons.more_vert_outlined, size: 18),
|
||||
@@ -266,7 +266,7 @@ class AuthorPanel extends StatelessWidget {
|
||||
final theme = Theme.of(context);
|
||||
return Padding(
|
||||
padding: EdgeInsets.only(
|
||||
bottom: MediaQuery.paddingOf(context1).bottom,
|
||||
bottom: MediaQuery.viewPaddingOf(context1).bottom,
|
||||
),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
|
||||
Reference in New Issue
Block a user