From 208f93a3197d423c1d6c42f56db85eb2fbadd605 Mon Sep 17 00:00:00 2001 From: Aliaksei Tratseuski Date: Mon, 5 Feb 2024 14:45:42 +0400 Subject: [PATCH] refactor: removed crutch in favor of centerTitle appbar property --- lib/ui/components/brand_header/brand_header.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ui/components/brand_header/brand_header.dart b/lib/ui/components/brand_header/brand_header.dart index 3151aff7..56be04df 100644 --- a/lib/ui/components/brand_header/brand_header.dart +++ b/lib/ui/components/brand_header/brand_header.dart @@ -14,6 +14,7 @@ class BrandHeader extends StatelessWidget { @override Widget build(final BuildContext context) => AppBar( + centerTitle: true, title: Padding( padding: const EdgeInsets.only(top: 4.0), child: Text(title), @@ -25,8 +26,5 @@ class BrandHeader extends StatelessWidget { onBackButtonPressed ?? () => Navigator.of(context).pop(), ) : null, - actions: const [ - SizedBox.shrink(), - ], ); }