mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-16 14:46:44 +02:00
Colour, alignment fixes
This commit is contained in:
@ -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(
|
||||||
|
@ -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) {
|
||||||
|
@ -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)
|
||||||
|
Reference in New Issue
Block a user