feat : new ui

This commit is contained in:
2025-09-21 14:32:58 +03:30
parent bbd572c579
commit 50d708469c
23 changed files with 872 additions and 502 deletions

View File

@@ -10,11 +10,12 @@ class BasePage extends StatefulWidget {
const BasePage({
super.key,
this.routes,
required this.widgets,
this.widgets,
this.routesWidget,
this.floatingActionButtonLocation,
this.floatingActionButton,
this.onSearchChanged,
this.child,
this.hasBack = true,
this.hasFilter = true,
this.hasSearch = true,
@@ -30,7 +31,8 @@ class BasePage extends StatefulWidget {
final List<String>? routes;
final Widget? routesWidget;
final List<Widget> widgets;
final List<Widget>? widgets;
final Widget? child;
final FloatingActionButtonLocation? floatingActionButtonLocation;
final Widget? floatingActionButton;
final Widget? filteringWidget;
@@ -135,7 +137,9 @@ class _BasePageState extends State<BasePage> {
if (!widget.isBase && widget.hasSearch) ...{
SearchWidget(onSearchChanged: widget.onSearchChanged),
},
...widget.widgets,
if (widget.child != null) ...{Expanded(child: widget.child!)},
...?widget.widgets,
],
),
floatingActionButtonLocation: widget.floatingActionButtonLocation,