✨ Drawer navigation
This commit is contained in:
@ -87,7 +87,7 @@ class _AccountScreenState extends State<AccountScreen> {
|
||||
|
||||
return ListView(
|
||||
children: [
|
||||
const AccountHeading().paddingOnly(bottom: 8, top: 16),
|
||||
const AccountHeading().paddingOnly(bottom: 8, top: 8),
|
||||
...(actionItems.map(
|
||||
(x) => ListTile(
|
||||
contentPadding: const EdgeInsets.symmetric(horizontal: 34),
|
||||
|
@ -12,6 +12,7 @@ import 'package:solian/widgets/app_bar_title.dart';
|
||||
import 'package:solian/widgets/channel/channel_list.dart';
|
||||
import 'package:solian/widgets/chat/call/chat_call_indicator.dart';
|
||||
import 'package:solian/widgets/current_state_action.dart';
|
||||
import 'package:solian/widgets/drawer_button.dart' as drawer;
|
||||
|
||||
class ChatScreen extends StatefulWidget {
|
||||
const ChatScreen({super.key});
|
||||
@ -94,7 +95,7 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
title: AppBarTitle('chat'.tr),
|
||||
centerTitle: false,
|
||||
floating: true,
|
||||
titleSpacing: SolianTheme.titleSpacing(context),
|
||||
leading: const drawer.DrawerButton(),
|
||||
toolbarHeight: SolianTheme.toolbarHeight(context),
|
||||
actions: [
|
||||
const BackgroundStateWidget(),
|
||||
@ -191,7 +192,8 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
child: RefreshIndicator(
|
||||
onRefresh: () => getChannels(),
|
||||
child: ChannelListWidget(
|
||||
channels: _channels.where((x) => x.type == 1).toList(),
|
||||
channels:
|
||||
_channels.where((x) => x.type == 1).toList(),
|
||||
selfId: _accountId ?? 0,
|
||||
noCategory: true,
|
||||
),
|
||||
|
@ -11,6 +11,7 @@ import 'package:solian/theme.dart';
|
||||
import 'package:solian/widgets/app_bar_title.dart';
|
||||
import 'package:solian/widgets/current_state_action.dart';
|
||||
import 'package:solian/widgets/feed/feed_list.dart';
|
||||
import 'package:solian/widgets/drawer_button.dart' as drawer;
|
||||
|
||||
class FeedScreen extends StatefulWidget {
|
||||
const FeedScreen({super.key});
|
||||
@ -62,8 +63,8 @@ class _FeedScreenState extends State<FeedScreen> {
|
||||
title: AppBarTitle('feed'.tr),
|
||||
centerTitle: false,
|
||||
floating: true,
|
||||
titleSpacing: SolianTheme.titleSpacing(context),
|
||||
toolbarHeight: SolianTheme.toolbarHeight(context),
|
||||
leading: const drawer.DrawerButton(),
|
||||
actions: [
|
||||
const BackgroundStateWidget(),
|
||||
const NotificationButton(),
|
||||
|
@ -11,6 +11,7 @@ import 'package:solian/theme.dart';
|
||||
import 'package:solian/widgets/account/signin_required_overlay.dart';
|
||||
import 'package:solian/widgets/app_bar_title.dart';
|
||||
import 'package:solian/widgets/current_state_action.dart';
|
||||
import 'package:solian/widgets/drawer_button.dart' as drawer;
|
||||
|
||||
class RealmListScreen extends StatefulWidget {
|
||||
const RealmListScreen({super.key});
|
||||
@ -79,7 +80,7 @@ class _RealmListScreenState extends State<RealmListScreen> {
|
||||
title: AppBarTitle('realm'.tr),
|
||||
centerTitle: false,
|
||||
floating: true,
|
||||
titleSpacing: SolianTheme.titleSpacing(context),
|
||||
leading: const drawer.DrawerButton(),
|
||||
toolbarHeight: SolianTheme.toolbarHeight(context),
|
||||
actions: [
|
||||
const BackgroundStateWidget(),
|
||||
|
Reference in New Issue
Block a user