mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:55:12 +00:00
chore: Make appbar buttons correct size
This commit is contained in:
parent
e229a0450f
commit
419a9f4aff
11 changed files with 14 additions and 12 deletions
|
@ -19,7 +19,7 @@ class ArchiveView extends StatelessWidget {
|
|||
future: controller.getArchive(context),
|
||||
builder: (BuildContext context, snapshot) => Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: const BackButton(),
|
||||
leading: const Center(child: BackButton()),
|
||||
title: Text(L10n.of(context)!.archive),
|
||||
actions: [
|
||||
if (snapshot.data?.isNotEmpty ?? false)
|
||||
|
|
|
@ -15,7 +15,7 @@ class DevicesSettingsView extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: const BackButton(),
|
||||
leading: const Center(child: BackButton()),
|
||||
title: Text(L10n.of(context)!.devices),
|
||||
),
|
||||
body: MaxWidthBody(
|
||||
|
|
|
@ -344,7 +344,7 @@ class KeyVerificationPageState extends State<KeyVerificationDialog> {
|
|||
}
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: const CloseButton(),
|
||||
leading: const Center(child: CloseButton()),
|
||||
title: title,
|
||||
),
|
||||
body: ListView(
|
||||
|
|
|
@ -24,7 +24,7 @@ class NewPrivateChatView extends StatelessWidget {
|
|||
min(MediaQuery.of(context).size.width - 16, 256).toDouble();
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: const BackButton(),
|
||||
leading: const Center(child: BackButton()),
|
||||
title: Text(L10n.of(context)!.newChat),
|
||||
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
|
||||
actions: [
|
||||
|
|
|
@ -22,9 +22,11 @@ class SettingsView extends StatelessWidget {
|
|||
final showChatBackupBanner = controller.showChatBackupBanner;
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: CloseButton(
|
||||
leading: Center(
|
||||
child: CloseButton(
|
||||
onPressed: () => context.go('/rooms'),
|
||||
),
|
||||
),
|
||||
title: Text(L10n.of(context)!.settings),
|
||||
actions: [
|
||||
TextButton.icon(
|
||||
|
|
|
@ -17,7 +17,7 @@ class Settings3PidView extends StatelessWidget {
|
|||
controller.request ??= Matrix.of(context).client.getAccount3PIDs();
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: const BackButton(),
|
||||
leading: const Center(child: BackButton()),
|
||||
title: Text(L10n.of(context)!.passwordRecovery),
|
||||
actions: [
|
||||
IconButton(
|
||||
|
|
|
@ -23,7 +23,7 @@ class EmotesSettingsView extends StatelessWidget {
|
|||
final imageKeys = controller.pack!.images.keys.toList();
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: const BackButton(),
|
||||
leading: const Center(child: BackButton()),
|
||||
title: Text(L10n.of(context)!.emoteSettings),
|
||||
actions: [
|
||||
PopupMenuButton<PopupMenuEmojiActions>(
|
||||
|
|
|
@ -19,7 +19,7 @@ class SettingsIgnoreListView extends StatelessWidget {
|
|||
final client = Matrix.of(context).client;
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: const BackButton(),
|
||||
leading: const Center(child: BackButton()),
|
||||
title: Text(L10n.of(context)!.ignoredUsers),
|
||||
),
|
||||
body: MaxWidthBody(
|
||||
|
|
|
@ -18,7 +18,7 @@ class MultipleEmotesSettingsView extends StatelessWidget {
|
|||
final room = Matrix.of(context).client.getRoomById(controller.roomId!)!;
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: const BackButton(),
|
||||
leading: const Center(child: BackButton()),
|
||||
title: Text(L10n.of(context)!.emotePacks),
|
||||
),
|
||||
body: StreamBuilder(
|
||||
|
|
|
@ -19,7 +19,7 @@ class SettingsNotificationsView extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: const BackButton(),
|
||||
leading: const Center(child: BackButton()),
|
||||
title: Text(L10n.of(context)!.notifications),
|
||||
),
|
||||
body: MaxWidthBody(
|
||||
|
|
|
@ -19,7 +19,7 @@ class SettingsStyleView extends StatelessWidget {
|
|||
final wallpaper = Matrix.of(context).wallpaper;
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: const BackButton(),
|
||||
leading: const Center(child: BackButton()),
|
||||
title: Text(L10n.of(context)!.changeTheme),
|
||||
),
|
||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||
|
|
Loading…
Reference in a new issue