first commit
This commit is contained in:
18
lib/components/notifiers/home_screen_data.dart
Normal file
18
lib/components/notifiers/home_screen_data.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
// Flutter imports:
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
class CollectionData extends ChangeNotifier {
|
||||
CollectionData({this.showFAB = true});
|
||||
|
||||
/// Флаг показа
|
||||
bool showFAB;
|
||||
|
||||
/// Смена состояния показа Fab на экране коллекции
|
||||
void showFab(bool show) {
|
||||
if (showFAB != show) {
|
||||
showFAB = show;
|
||||
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user