Skip to content
Snippets Groups Projects
Commit cece41dd authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

update: remove redundant scaffold key

parent 749dc2c0
No related branches found
No related tags found
2 merge requests!9Clhp map,!8Clhp map
...@@ -24,8 +24,6 @@ class _DefaultPageState extends State<DefaultPage> { ...@@ -24,8 +24,6 @@ class _DefaultPageState extends State<DefaultPage> {
late Future<List<Measurement>> markerListFuture; late Future<List<Measurement>> markerListFuture;
late Future<Uint8List> relationFuture; late Future<Uint8List> relationFuture;
final GlobalKey<ScaffoldMessengerState> _scaffoldMessengerKey = GlobalKey<ScaffoldMessengerState>();
@override @override
void initState() { void initState() {
super.initState(); super.initState();
...@@ -85,7 +83,6 @@ class _DefaultPageState extends State<DefaultPage> { ...@@ -85,7 +83,6 @@ class _DefaultPageState extends State<DefaultPage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return MaterialApp( return MaterialApp(
home: Scaffold( home: Scaffold(
key: _scaffoldMessengerKey,
appBar: AppBar( appBar: AppBar(
title: const Text('IceMap'), title: const Text('IceMap'),
actions: [ actions: [
...@@ -113,8 +110,8 @@ class _DefaultPageState extends State<DefaultPage> { ...@@ -113,8 +110,8 @@ class _DefaultPageState extends State<DefaultPage> {
'assets/icons/frozen.png', // Loading screen icon 'assets/icons/frozen.png', // Loading screen icon
// Icon from: https://www.flaticon.com/free-icons/cold-water" // Icon from: https://www.flaticon.com/free-icons/cold-water"
color: lightBlue, color: lightBlue,
width: 200, width: 170,
height: 200, height: 170,
), ),
), ),
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment