47 lines
1.5 KiB
Dart
47 lines
1.5 KiB
Dart
import '/components/appbar_widget.dart';
|
|
import '/components/nav_bar1_widget.dart';
|
|
import '/flutterlib/flutter_button_tabbar.dart';
|
|
import '/flutterlib/flutter_theme.dart';
|
|
import '/flutterlib/flutter_util.dart';
|
|
import '/flutterlib/flutter_widgets.dart';
|
|
import 'compsec_queue_widget.dart' show CompsecQueueWidget;
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/services.dart';
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
class CompsecQueueModel extends FlutterModel<CompsecQueueWidget> {
|
|
/// State fields for stateful widgets in this page.
|
|
|
|
final unfocusNode = FocusNode();
|
|
// State field(s) for TabBar widget.
|
|
TabController? tabBarController;
|
|
int get tabBarCurrentIndex =>
|
|
tabBarController != null ? tabBarController!.index : 0;
|
|
|
|
// Model for NavBar1 component.
|
|
late NavBar1Model navBar1Model;
|
|
// Model for appbar component.
|
|
late AppbarModel appbarModel;
|
|
|
|
/// Initialization and disposal methods.
|
|
|
|
void initState(BuildContext context) {
|
|
navBar1Model = createModel(context, () => NavBar1Model());
|
|
appbarModel = createModel(context, () => AppbarModel());
|
|
}
|
|
|
|
void dispose() {
|
|
unfocusNode.dispose();
|
|
tabBarController?.dispose();
|
|
navBar1Model.dispose();
|
|
appbarModel.dispose();
|
|
}
|
|
|
|
/// Action blocks are added here.
|
|
|
|
/// Additional helper methods are added here.
|
|
}
|