🐛 Fix styling issue
This commit is contained in:
parent
4209a13c84
commit
603875b1af
@ -113,21 +113,20 @@ class _AppNavigationDrawerState extends State<AppNavigationDrawer> {
|
|||||||
? Theme.of(context)
|
? Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
.primaryContainer
|
.primaryContainer
|
||||||
: Theme.of(context)
|
: Colors.transparent,
|
||||||
.colorScheme
|
|
||||||
.surfaceContainerLow,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
GoRouter.of(context).goNamed(ele.screen);
|
GoRouter.of(context).goNamed(ele.screen);
|
||||||
Scaffold.of(context).closeDrawer();
|
Scaffold.of(context).closeDrawer();
|
||||||
|
nav.setIndex(idx);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
).toList(),
|
).toList(),
|
||||||
).padding(horizontal: 16),
|
).padding(horizontal: 16, bottom: 8),
|
||||||
Align(
|
Align(
|
||||||
alignment: Alignment.bottomCenter,
|
alignment: Alignment.bottomCenter,
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
@ -173,7 +172,7 @@ class _AppNavigationDrawerState extends State<AppNavigationDrawer> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Gap(MediaQuery.of(context).padding.bottom),
|
Gap(MediaQuery.of(context).padding.bottom + 8),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@ -282,7 +281,7 @@ class _DrawerContentList extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
title: Text(nav.focusedRealm!.name),
|
title: Text(nav.focusedRealm!.name),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
GoRouter.of(context).pushNamed(
|
GoRouter.of(context).goNamed(
|
||||||
'realmDetail',
|
'realmDetail',
|
||||||
pathParameters: {
|
pathParameters: {
|
||||||
'alias': nav.focusedRealm!.alias,
|
'alias': nav.focusedRealm!.alias,
|
||||||
@ -300,7 +299,7 @@ class _DrawerContentList extends StatelessWidget {
|
|||||||
leading: const Icon(Symbols.globe),
|
leading: const Icon(Symbols.globe),
|
||||||
title: Text('community').tr(),
|
title: Text('community').tr(),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
GoRouter.of(context).pushNamed(
|
GoRouter.of(context).goNamed(
|
||||||
'realmCommunity',
|
'realmCommunity',
|
||||||
pathParameters: {
|
pathParameters: {
|
||||||
'alias': nav.focusedRealm!.alias,
|
'alias': nav.focusedRealm!.alias,
|
||||||
@ -325,7 +324,7 @@ class _DrawerContentList extends StatelessWidget {
|
|||||||
leading: const Icon(Symbols.tag),
|
leading: const Icon(Symbols.tag),
|
||||||
title: Text(ele.name),
|
title: Text(ele.name),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
GoRouter.of(context).pushNamed(
|
GoRouter.of(context).goNamed(
|
||||||
'chatRoom',
|
'chatRoom',
|
||||||
pathParameters: {
|
pathParameters: {
|
||||||
'scope': ele.realm?.alias ?? 'global',
|
'scope': ele.realm?.alias ?? 'global',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user