chore: Make appbar buttons correct size

pull/516/head
krille-chan 2 years ago
parent e229a0450f
commit 419a9f4aff
No known key found for this signature in database

@ -19,7 +19,7 @@ class ArchiveView extends StatelessWidget {
future: controller.getArchive(context), future: controller.getArchive(context),
builder: (BuildContext context, snapshot) => Scaffold( builder: (BuildContext context, snapshot) => Scaffold(
appBar: AppBar( appBar: AppBar(
leading: const BackButton(), leading: const Center(child: BackButton()),
title: Text(L10n.of(context)!.archive), title: Text(L10n.of(context)!.archive),
actions: [ actions: [
if (snapshot.data?.isNotEmpty ?? false) if (snapshot.data?.isNotEmpty ?? false)

@ -15,7 +15,7 @@ class DevicesSettingsView extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
leading: const BackButton(), leading: const Center(child: BackButton()),
title: Text(L10n.of(context)!.devices), title: Text(L10n.of(context)!.devices),
), ),
body: MaxWidthBody( body: MaxWidthBody(

@ -344,7 +344,7 @@ class KeyVerificationPageState extends State<KeyVerificationDialog> {
} }
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
leading: const CloseButton(), leading: const Center(child: CloseButton()),
title: title, title: title,
), ),
body: ListView( body: ListView(

@ -24,7 +24,7 @@ class NewPrivateChatView extends StatelessWidget {
min(MediaQuery.of(context).size.width - 16, 256).toDouble(); min(MediaQuery.of(context).size.width - 16, 256).toDouble();
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
leading: const BackButton(), leading: const Center(child: BackButton()),
title: Text(L10n.of(context)!.newChat), title: Text(L10n.of(context)!.newChat),
backgroundColor: Theme.of(context).scaffoldBackgroundColor, backgroundColor: Theme.of(context).scaffoldBackgroundColor,
actions: [ actions: [

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

@ -17,7 +17,7 @@ class Settings3PidView extends StatelessWidget {
controller.request ??= Matrix.of(context).client.getAccount3PIDs(); controller.request ??= Matrix.of(context).client.getAccount3PIDs();
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
leading: const BackButton(), leading: const Center(child: BackButton()),
title: Text(L10n.of(context)!.passwordRecovery), title: Text(L10n.of(context)!.passwordRecovery),
actions: [ actions: [
IconButton( IconButton(

@ -23,7 +23,7 @@ class EmotesSettingsView extends StatelessWidget {
final imageKeys = controller.pack!.images.keys.toList(); final imageKeys = controller.pack!.images.keys.toList();
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
leading: const BackButton(), leading: const Center(child: BackButton()),
title: Text(L10n.of(context)!.emoteSettings), title: Text(L10n.of(context)!.emoteSettings),
actions: [ actions: [
PopupMenuButton<PopupMenuEmojiActions>( PopupMenuButton<PopupMenuEmojiActions>(

@ -19,7 +19,7 @@ class SettingsIgnoreListView extends StatelessWidget {
final client = Matrix.of(context).client; final client = Matrix.of(context).client;
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
leading: const BackButton(), leading: const Center(child: BackButton()),
title: Text(L10n.of(context)!.ignoredUsers), title: Text(L10n.of(context)!.ignoredUsers),
), ),
body: MaxWidthBody( body: MaxWidthBody(

@ -18,7 +18,7 @@ class MultipleEmotesSettingsView extends StatelessWidget {
final room = Matrix.of(context).client.getRoomById(controller.roomId!)!; final room = Matrix.of(context).client.getRoomById(controller.roomId!)!;
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
leading: const BackButton(), leading: const Center(child: BackButton()),
title: Text(L10n.of(context)!.emotePacks), title: Text(L10n.of(context)!.emotePacks),
), ),
body: StreamBuilder( body: StreamBuilder(

@ -19,7 +19,7 @@ class SettingsNotificationsView extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
leading: const BackButton(), leading: const Center(child: BackButton()),
title: Text(L10n.of(context)!.notifications), title: Text(L10n.of(context)!.notifications),
), ),
body: MaxWidthBody( body: MaxWidthBody(

@ -19,7 +19,7 @@ class SettingsStyleView extends StatelessWidget {
final wallpaper = Matrix.of(context).wallpaper; final wallpaper = Matrix.of(context).wallpaper;
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
leading: const BackButton(), leading: const Center(child: BackButton()),
title: Text(L10n.of(context)!.changeTheme), title: Text(L10n.of(context)!.changeTheme),
), ),
backgroundColor: Theme.of(context).colorScheme.surface, backgroundColor: Theme.of(context).colorScheme.surface,

Loading…
Cancel
Save