Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
3fb1d7a6d4 | |||
0480b5244f |
@ -44,9 +44,12 @@ class PostProvider extends GetxController {
|
||||
final queries = [
|
||||
'take=${10}',
|
||||
'offset=$page',
|
||||
'truncate=false',
|
||||
];
|
||||
final client = await auth.configureClient('interactive');
|
||||
final resp = await client.get('/posts/drafts?${queries.join('&')}');
|
||||
final resp = await client.get(
|
||||
'/posts/drafts?${queries.join('&')}',
|
||||
);
|
||||
if (resp.statusCode != 200) {
|
||||
throw RequestException(resp);
|
||||
}
|
||||
|
@ -43,7 +43,10 @@ class RootShell extends StatelessWidget {
|
||||
|
||||
final showRailNavigation = AppTheme.isLargeScreen(context);
|
||||
|
||||
final destNames = AppNavigation.destinations.map((x) => x.page).toList();
|
||||
final destNames = [
|
||||
'postDetail',
|
||||
...AppNavigation.destinations.map((x) => x.page),
|
||||
];
|
||||
final showBottomNavigation =
|
||||
destNames.contains(routeName) && !showRailNavigation;
|
||||
|
||||
@ -52,13 +55,22 @@ class RootShell extends StatelessWidget {
|
||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||
bottomNavigationBar: showBottomNavigation
|
||||
? AppNavigationBottom(
|
||||
initialIndex: destNames.indexOf(routeName ?? 'page'),
|
||||
initialIndex: AppNavigation.destinations
|
||||
.map((x) => x.page)
|
||||
.toList()
|
||||
.indexOf(routeName ?? 'page'),
|
||||
)
|
||||
: null,
|
||||
body: AppTheme.isLargeScreen(context)
|
||||
? Row(
|
||||
children: [
|
||||
if (showRailNavigation) const AppNavigationRail(),
|
||||
if (showRailNavigation)
|
||||
AppNavigationRail(
|
||||
initialIndex: AppNavigation.destinations
|
||||
.map((x) => x.page)
|
||||
.toList()
|
||||
.indexOf(routeName ?? 'page'),
|
||||
),
|
||||
if (showRailNavigation)
|
||||
const VerticalDivider(
|
||||
width: 0.3,
|
||||
|
@ -2,7 +2,7 @@ name: solian
|
||||
description: "The Solar Network App"
|
||||
publish_to: "none"
|
||||
|
||||
version: 1.4.0+15
|
||||
version: 1.4.0+16
|
||||
|
||||
environment:
|
||||
sdk: ">=3.3.4 <4.0.0"
|
||||
|
Reference in New Issue
Block a user