Skip to content

Commit

Permalink
🐛 Return to deprecated Scaffold
Browse files Browse the repository at this point in the history
Replace ScaffoldMessenger to Scaffold, as stable does not have ScaffoldMessenger, yet
  • Loading branch information
strifel committed Feb 6, 2021
1 parent bc6afbe commit 58bf44c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Views/User.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class User extends StatelessWidget {
API.of(context).setLoginCredentials(null, null);
KAGAppState.app.setLoggedOut();
SharedPreferences.getInstance().then((instance) => instance.remove("klasse"));
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
Scaffold.of(context).showSnackBar(SnackBar(
content: Text("Logged out!"),
action: SnackBarAction(
label: 'Zurück zum Start!', onPressed: () => KAGAppState.app.goToPage(2))
Expand Down

0 comments on commit 58bf44c

Please sign in to comment.