Initial commit: family safety frontend project setup
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class MapProvider with ChangeNotifier {
|
||||
bool _isInitialized = false;
|
||||
String _error = '';
|
||||
|
||||
bool get isInitialized => _isInitialized;
|
||||
String get error => _error;
|
||||
|
||||
void initialize() {
|
||||
_isInitialized = true;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void handleError(String error) {
|
||||
_error = error;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void clearError() {
|
||||
_error = '';
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user