Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
geekymon2 committed Jun 1, 2024
1 parent b7e49e2 commit 4c12006
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class NitnemApp extends StatelessWidget {
final Store<AppState> store;
final _optionsPageKey = GlobalKey();
final _homeScreenKey = GlobalKey();
final _readerScreenKey = GlobalKey();
NitnemApp(this.store);

@override
Expand Down Expand Up @@ -74,7 +75,7 @@ class NitnemApp extends StatelessWidget {
AppRoute(
routeName: '/reader',
buildRoute: (BuildContext context) => ReaderScreen(
key: UniqueKey(),
key: _readerScreenKey,
),
),
];
Expand Down
3 changes: 2 additions & 1 deletion lib/pages/readerscreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class ReaderScreen extends StatefulWidget {
class _MyReaderPageState extends State<ReaderScreen> {
final Battery _battery = Battery();
ScrollController _controller = ScrollController(initialScrollOffset: 0.0);
static final GlobalKey _optionsKey = GlobalKey();
static final GlobalKey<ScaffoldState> _readerScreenScaffoldKey =
GlobalKey<ScaffoldState>();
static final GlobalKey _storeConnectorKey = GlobalKey();
Expand Down Expand Up @@ -212,7 +213,7 @@ class _MyReaderPageState extends State<ReaderScreen> {
: vm.nitnemPathTitle),
background: OptionsPage(
readerMode: true,
key: UniqueKey(),
key: _optionsKey,
),
),
),
Expand Down

0 comments on commit 4c12006

Please sign in to comment.