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);
}
return Scaffold(
backgroundColor: Theme.of(context).colorScheme.surface,
body: CustomScrollView(slivers: <Widget>[
CustomAppBar(title: '${app?.app.name}'),
SliverFillRemaining(

View File

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

View File

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