refactor: removed crutch in favor of centerTitle appbar property

pull/444/head
Aliaksei Tratseuski 2024-02-05 14:45:42 +04:00 committed by aliaksei tratseuski
parent b40b872940
commit 208f93a319
1 changed files with 1 additions and 3 deletions

View File

@ -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(),
],
);
}