Fix core crash caused by windows resource manager restart Optimize logs, requests, access to pages Fix macos bypass domain issues
21 lines
609 B
Dart
21 lines
609 B
Dart
import 'package:flutter/material.dart';
|
|
import 'context.dart';
|
|
|
|
mixin ViewMixin<T extends StatefulWidget> on State<T> {
|
|
List<Widget> get actions => [];
|
|
|
|
Widget? get floatingActionButton => null;
|
|
|
|
initViewState() {
|
|
final commonScaffoldState = context.commonScaffoldState;
|
|
commonScaffoldState?.actions = actions;
|
|
commonScaffoldState?.floatingActionButton = floatingActionButton;
|
|
commonScaffoldState?.onSearch = onSearch;
|
|
commonScaffoldState?.onKeywordsUpdate = onKeywordsUpdate;
|
|
}
|
|
|
|
Function(String)? get onSearch => null;
|
|
|
|
Function(List<String>)? get onKeywordsUpdate => null;
|
|
}
|