first commit
This commit is contained in:
33
lib/components/date_model.dart
Normal file
33
lib/components/date_model.dart
Normal file
@@ -0,0 +1,33 @@
|
||||
import '/flutterlib/flutter_icon_button.dart';
|
||||
import '/flutterlib/flutter_theme.dart';
|
||||
import '/flutterlib/flutter_util.dart';
|
||||
import '/flutterlib/custom_functions.dart' as functions;
|
||||
import 'date_widget.dart' show DateWidget;
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class DateModel extends FlutterModel<DateWidget> {
|
||||
/// State fields for stateful widgets in this component.
|
||||
|
||||
// State field(s) for date widget.
|
||||
FocusNode? dateFocusNode;
|
||||
TextEditingController? dateController;
|
||||
String? Function(BuildContext, String?)? dateControllerValidator;
|
||||
DateTime? datePicked;
|
||||
|
||||
/// Initialization and disposal methods.
|
||||
|
||||
void initState(BuildContext context) {}
|
||||
|
||||
void dispose() {
|
||||
dateFocusNode?.dispose();
|
||||
dateController?.dispose();
|
||||
}
|
||||
|
||||
/// Action blocks are added here.
|
||||
|
||||
/// Additional helper methods are added here.
|
||||
}
|
||||
Reference in New Issue
Block a user