34 lines
1011 B
Dart
34 lines
1011 B
Dart
|
|
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.
|
||
|
|
}
|