Colour, alignment fixes

This commit is contained in:
Imran Remtulla
2022-09-17 17:00:08 -04:00
parent 0f6b6253de
commit 681092d895
3 changed files with 11 additions and 6 deletions

View File

@ -26,6 +26,7 @@ class _AppPageState extends State<AppPage> {
appsProvider.getUpdate(app!.app.id); appsProvider.getUpdate(app!.app.id);
} }
return Scaffold( return Scaffold(
backgroundColor: Theme.of(context).colorScheme.surface,
body: CustomScrollView(slivers: <Widget>[ body: CustomScrollView(slivers: <Widget>[
CustomAppBar(title: '${app?.app.name}'), CustomAppBar(title: '${app?.app.name}'),
SliverFillRemaining( SliverFillRemaining(

View File

@ -36,6 +36,7 @@ class _AppsPageState extends State<AppsPage> {
} }
return Scaffold( return Scaffold(
backgroundColor: Theme.of(context).colorScheme.surface,
floatingActionButton: existingUpdateAppIds.isEmpty floatingActionButton: existingUpdateAppIds.isEmpty
? null ? null
: ElevatedButton.icon( : ElevatedButton.icon(
@ -59,12 +60,14 @@ class _AppsPageState extends State<AppsPage> {
const CustomAppBar(title: 'Apps'), const CustomAppBar(title: 'Apps'),
if (appsProvider.loadingApps || appsProvider.apps.isEmpty) if (appsProvider.loadingApps || appsProvider.apps.isEmpty)
SliverFillRemaining( SliverFillRemaining(
child: appsProvider.loadingApps child: Center(
? const CircularProgressIndicator() child: appsProvider.loadingApps
: Text( ? const CircularProgressIndicator()
'No Apps', : Text(
style: Theme.of(context).textTheme.headlineMedium, 'No Apps',
)), style:
Theme.of(context).textTheme.headlineMedium,
))),
SliverList( SliverList(
delegate: SliverChildBuilderDelegate( delegate: SliverChildBuilderDelegate(
(BuildContext context, int index) { (BuildContext context, int index) {

View File

@ -35,6 +35,7 @@ class _HomePageState extends State<HomePage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return WillPopScope( return WillPopScope(
child: Scaffold( child: Scaffold(
backgroundColor: Theme.of(context).colorScheme.surface,
body: pages body: pages
.elementAt( .elementAt(
selectedIndexHistory.isEmpty ? 0 : selectedIndexHistory.last) selectedIndexHistory.isEmpty ? 0 : selectedIndexHistory.last)