Last changes not published

This commit is contained in:
vjrj 2026-03-05 01:18:27 +01:00
parent ac65ccf990
commit 21ec08303a
43 changed files with 607 additions and 613 deletions

View file

@ -5,7 +5,7 @@ import 'package:fires_flutter/models/yourLocation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_fab_dialer/flutter_fab_dialer.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:redux/src/store.dart';
import 'package:redux/redux.dart';
import 'colors.dart';
import 'firesSpinner.dart';
@ -91,7 +91,7 @@ class _ActiveFiresPageState extends State<ActiveFiresPage> {
icon: new Icon(loc.subscribed
? Icons.notifications_active
: Icons.notifications_off),
color: loc.subscribed ? fires600: null,
color: loc.subscribed ? fires600 : null,
onPressed: () {
loc.subscribed = !loc.subscribed;
onToggle(loc);
@ -125,7 +125,8 @@ class _ActiveFiresPageState extends State<ActiveFiresPage> {
}
void showSnackMsg(String msg) {
_scaffoldKey.currentState.showSnackBar(new SnackBar(
// _scaffoldKey.currentState.showSnackBar(new SnackBar(
ScaffoldMessenger.of(context).showSnackBar(new SnackBar(
content: new Text(msg),
));
}
@ -183,7 +184,7 @@ class _ActiveFiresPageState extends State<ActiveFiresPage> {
},
onDelete: (loc) {
store.dispatch(new DeleteYourLocationAction(loc));
_scaffoldKey.currentState.showSnackBar(new SnackBar(
ScaffoldMessenger.of(context).showSnackBar(new SnackBar(
content: new Text(S.of(context).youDeletedThisPlace),
action: new SnackBarAction(
label: S.of(context).UNDO,
@ -242,6 +243,7 @@ class _ActiveFiresPageState extends State<ActiveFiresPage> {
view.onRefresh(completer);
return completer.future;
}),
// TODO: Evaluate: https://github.com/tiagojencmartins/unicornspeeddial
new FabDialer(_fabMiniMenuItemList(context, view.onAdd),
fires600, new Icon(Icons.add))
])