build method
- BuildContext context
override
It creates a column with a row of buttons.
Args: context: The context of the widget.
Returns: A Column widget with a Row widget with a Text widget and a CupertinoButton widget.
Implementation
@override
Widget build(BuildContext context) =>
MultiProvider(
providers: <ChangeNotifierProvider<ChangeNotifier>>[
ChangeNotifierProvider<ReferenceNotifier>(
create: (_) => ReferenceNotifier(),
),
],
builder: (BuildContext context, Widget? child) {
if (widget.sessionID == -1 && widget.studentID == -1) {
return CupertinoPageScaffold(
child: GestureHome(
studentID: widget.studentID,
sessionID: widget.sessionID,
),
);
}
return WillPopScope(
onWillPop: () async => false,
child: CupertinoPageScaffold(
child: GestureHome(
studentID: widget.studentID,
sessionID: widget.sessionID,
),
),
);
},
);