chore: Make appbar buttons correct size

This commit is contained in:
krille-chan 2023-08-13 18:23:36 +02:00
parent e229a0450f
commit 419a9f4aff
No known key found for this signature in database
11 changed files with 14 additions and 12 deletions

View file

@ -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)

View file

@ -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(

View file

@ -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(

View file

@ -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: [

View file

@ -22,8 +22,10 @@ class SettingsView extends StatelessWidget {
final showChatBackupBanner = controller.showChatBackupBanner;
return Scaffold(
appBar: AppBar(
leading: CloseButton(
onPressed: () => context.go('/rooms'),
leading: Center(
child: CloseButton(
onPressed: () => context.go('/rooms'),
),
),
title: Text(L10n.of(context)!.settings),
actions: [

View file

@ -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(

View file

@ -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>(

View file

@ -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(

View file

@ -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(

View file

@ -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(

View file

@ -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,