un-center appbar
This commit is contained in:
parent
0fb00d7ec1
commit
60a97e6a24
2 changed files with 1 additions and 4 deletions
|
|
@ -64,7 +64,6 @@ class _HomeState extends State<Home> {
|
|||
onTap: FocusScope.of(context).unfocus,
|
||||
child: Scaffold(
|
||||
appBar: AppBar(
|
||||
centerTitle: false,
|
||||
shape: const Border(),
|
||||
title: Observer(
|
||||
builder: (_) {
|
||||
|
|
|
|||
|
|
@ -2,13 +2,11 @@ import 'package:flutter/material.dart';
|
|||
|
||||
class FrostyAppBar extends StatelessWidget implements PreferredSizeWidget {
|
||||
final Widget title;
|
||||
final bool? centerTitle;
|
||||
final List<Widget>? actions;
|
||||
|
||||
const FrostyAppBar({
|
||||
super.key,
|
||||
required this.title,
|
||||
this.centerTitle,
|
||||
this.actions,
|
||||
});
|
||||
|
||||
|
|
@ -21,8 +19,8 @@ class FrostyAppBar extends StatelessWidget implements PreferredSizeWidget {
|
|||
onPressed: Navigator.of(context).pop,
|
||||
),
|
||||
title: title,
|
||||
centerTitle: centerTitle,
|
||||
actions: actions,
|
||||
centerTitle: false,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue