refactor: removed crutch in favor of centerTitle appbar property
parent
b40b872940
commit
208f93a319
|
@ -14,6 +14,7 @@ class BrandHeader extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(final BuildContext context) => AppBar(
|
Widget build(final BuildContext context) => AppBar(
|
||||||
|
centerTitle: true,
|
||||||
title: Padding(
|
title: Padding(
|
||||||
padding: const EdgeInsets.only(top: 4.0),
|
padding: const EdgeInsets.only(top: 4.0),
|
||||||
child: Text(title),
|
child: Text(title),
|
||||||
|
@ -25,8 +26,5 @@ class BrandHeader extends StatelessWidget {
|
||||||
onBackButtonPressed ?? () => Navigator.of(context).pop(),
|
onBackButtonPressed ?? () => Navigator.of(context).pop(),
|
||||||
)
|
)
|
||||||
: null,
|
: null,
|
||||||
actions: const [
|
|
||||||
SizedBox.shrink(),
|
|
||||||
],
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue