un-center appbar

This commit is contained in:
Tommy Chow 2025-06-17 17:06:04 -04:00
parent 0fb00d7ec1
commit 60a97e6a24
2 changed files with 1 additions and 4 deletions

View file

@ -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: (_) {

View file

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