feat : request tagging
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -23,6 +23,9 @@ class BasePage extends StatefulWidget {
|
||||
this.onFilterTap,
|
||||
this.onSearchTap,
|
||||
this.filteringWidget,
|
||||
this.title,
|
||||
this.padding,
|
||||
this.avoidBottomInset = true,
|
||||
});
|
||||
|
||||
final List<String>? routes;
|
||||
@@ -37,9 +40,13 @@ class BasePage extends StatefulWidget {
|
||||
final bool hasFilter;
|
||||
final bool hasSearch;
|
||||
final bool isBase;
|
||||
final bool avoidBottomInset;
|
||||
|
||||
final VoidCallback? onBackPressed;
|
||||
final GestureTapCallback? onFilterTap;
|
||||
final GestureTapCallback? onSearchTap;
|
||||
final String? title;
|
||||
final EdgeInsets? padding;
|
||||
|
||||
@override
|
||||
State<BasePage> createState() => _BasePageState();
|
||||
@@ -115,7 +122,9 @@ class _BasePageState extends State<BasePage> {
|
||||
onPopInvokedWithResult: (didPop, result) => widget.onBackPressed,
|
||||
child: Scaffold(
|
||||
backgroundColor: AppColor.bgLight,
|
||||
resizeToAvoidBottomInset: widget.avoidBottomInset,
|
||||
appBar: liveStockAppBar(
|
||||
title: widget.title,
|
||||
hasBack: widget.isBase ? false : widget.hasBack,
|
||||
onBackPressed: widget.onBackPressed,
|
||||
hasFilter: widget.hasFilter,
|
||||
@@ -124,15 +133,18 @@ class _BasePageState extends State<BasePage> {
|
||||
onFilterTap: widget.hasFilter ? _onFilterTap : null,
|
||||
onSearchTap: widget.hasSearch ? () => controller.toggleSearch() : null,
|
||||
),
|
||||
body: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
//widget.routesWidget != null ? widget.routesWidget! : buildPageRoute(widget.routes!),
|
||||
if (!widget.isBase && widget.hasSearch && widget.defaultSearch) ...{
|
||||
SearchWidget(onSearchChanged: widget.onSearchChanged),
|
||||
},
|
||||
...widget.widgets,
|
||||
],
|
||||
body: Padding(
|
||||
padding: widget.padding ?? const EdgeInsets.all(0.0),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
//widget.routesWidget != null ? widget.routesWidget! : buildPageRoute(widget.routes!),
|
||||
if (!widget.isBase && widget.hasSearch && widget.defaultSearch) ...{
|
||||
SearchWidget(onSearchChanged: widget.onSearchChanged),
|
||||
},
|
||||
...widget.widgets,
|
||||
],
|
||||
),
|
||||
),
|
||||
floatingActionButtonLocation:
|
||||
widget.floatingActionButtonLocation ?? FloatingActionButtonLocation.startFloat,
|
||||
|
||||
Reference in New Issue
Block a user