mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-30 05:54:26 +02:00
fix: Patching Screen draw-behind Navigation Bar (#1945)
Co-authored-by: surya-technovert <surya.m@technovert.com>
This commit is contained in:
parent
96a21a5564
commit
f1b25d09da
@ -25,9 +25,6 @@ class InstallerView extends StatelessWidget {
|
|||||||
model.onPopAttempt(context);
|
model.onPopAttempt(context);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: SafeArea(
|
|
||||||
top: false,
|
|
||||||
bottom: model.isPatching,
|
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
floatingActionButton: Visibility(
|
floatingActionButton: Visibility(
|
||||||
visible:
|
visible:
|
||||||
@ -77,9 +74,8 @@ class InstallerView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
body: NotificationListener<ScrollNotification>(
|
body: NotificationListener<ScrollNotification>(
|
||||||
onNotification: model.handleAutoScrollNotification,
|
onNotification: model.handleAutoScrollNotification,
|
||||||
child: Stack(
|
child: Scaffold(
|
||||||
children: [
|
body: CustomScrollView(
|
||||||
CustomScrollView(
|
|
||||||
key: model.logCustomScrollKey,
|
key: model.logCustomScrollKey,
|
||||||
controller: model.scrollController,
|
controller: model.scrollController,
|
||||||
slivers: <Widget>[
|
slivers: <Widget>[
|
||||||
@ -87,8 +83,7 @@ class InstallerView extends StatelessWidget {
|
|||||||
title: Text(
|
title: Text(
|
||||||
model.headerLogs,
|
model.headerLogs,
|
||||||
style: GoogleFonts.inter(
|
style: GoogleFonts.inter(
|
||||||
color:
|
color: Theme.of(context).textTheme.titleLarge!.color,
|
||||||
Theme.of(context).textTheme.titleLarge!.color,
|
|
||||||
),
|
),
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
@ -102,7 +97,12 @@ class InstallerView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
SliverPadding(
|
SliverPadding(
|
||||||
padding: const EdgeInsets.all(20.0),
|
padding: EdgeInsets.only(
|
||||||
|
left: 20,
|
||||||
|
right: 20,
|
||||||
|
top: 20,
|
||||||
|
bottom: MediaQuery.paddingOf(context).bottom,
|
||||||
|
),
|
||||||
sliver: SliverList(
|
sliver: SliverList(
|
||||||
delegate: SliverChildListDelegate.fixed(
|
delegate: SliverChildListDelegate.fixed(
|
||||||
<Widget>[
|
<Widget>[
|
||||||
@ -121,18 +121,18 @@ class InstallerView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Visibility(
|
floatingActionButtonLocation:
|
||||||
|
FloatingActionButtonLocation.endDocked,
|
||||||
|
floatingActionButton: Visibility(
|
||||||
visible: model.showAutoScrollButton,
|
visible: model.showAutoScrollButton,
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: const Alignment(0.9, 0.97),
|
alignment: const Alignment(1, 0.85),
|
||||||
child: FloatingActionButton(
|
child: FloatingActionButton(
|
||||||
onPressed: model.scrollToBottom,
|
onPressed: model.scrollToBottom,
|
||||||
child: const Icon(Icons.arrow_downward_rounded),
|
child: const Icon(Icons.arrow_downward_rounded),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -49,12 +49,8 @@ class NavigationViewModel extends IndexTrackingViewModel {
|
|||||||
|
|
||||||
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
|
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
|
||||||
SystemChrome.setSystemUIOverlayStyle(
|
SystemChrome.setSystemUIOverlayStyle(
|
||||||
SystemUiOverlayStyle(
|
const SystemUiOverlayStyle(
|
||||||
systemNavigationBarColor: Colors.transparent,
|
systemNavigationBarColor: Colors.transparent,
|
||||||
systemNavigationBarIconBrightness:
|
|
||||||
DynamicTheme.of(context)!.theme.brightness == Brightness.light
|
|
||||||
? Brightness.dark
|
|
||||||
: Brightness.light,
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user