Skip to content

Commit

Permalink
πŸ› Fix back button on tv
Browse files Browse the repository at this point in the history
  • Loading branch information
LNA-DEV committed Nov 2, 2024
1 parent 4aac293 commit 9244f9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/views/login.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,15 @@ class LoginView extends StatelessWidget {
var token = await loginManager.login(info, context);
}

Navigator.pushReplacement(
await Navigator.pushReplacement(
context,
MaterialPageRoute(
builder: (context) => Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
surfaceTintColor: Colors.transparent,
title: Text(Globals.Title),
automaticallyImplyLeading: false,
),
body: widget,
),
Expand Down

0 comments on commit 9244f9a

Please sign in to comment.