feat: new ui changes
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:rasadyar_core/core.dart';
|
||||
|
||||
BackGroundWidget chickenBackground() {
|
||||
return BackGroundWidget(
|
||||
BoxDecoration chickenBackground() {
|
||||
return backGroundDecoration(
|
||||
gradient: LinearGradient(
|
||||
begin: Alignment(1.00, 0.01),
|
||||
end: Alignment(0.04, 0.99),
|
||||
@@ -12,6 +12,6 @@ BackGroundWidget chickenBackground() {
|
||||
const Color(0xFFD6E4E3).withValues(alpha: .8),
|
||||
],
|
||||
),
|
||||
vecPath: Assets.vec.chickenPatternSvg.path,
|
||||
backgroundPath: Assets.images.patternChicken.path,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ class ChickenBasePage extends GetView<BaseLogic> {
|
||||
this.onSearchChanged,
|
||||
this.routes,
|
||||
this.routesWidget,
|
||||
this.widgets,
|
||||
this.child,
|
||||
this.scrollable = false,
|
||||
this.floatingActionButtonLocation,
|
||||
@@ -30,6 +29,7 @@ class ChickenBasePage extends GetView<BaseLogic> {
|
||||
this.backGroundWidget,
|
||||
this.isFullScreen = false,
|
||||
this.onPopScopTaped,
|
||||
this.onRefresh,
|
||||
});
|
||||
|
||||
//AppBar properties`
|
||||
@@ -48,10 +48,10 @@ class ChickenBasePage extends GetView<BaseLogic> {
|
||||
final VoidCallback? onSearchTap;
|
||||
final VoidCallback? onNewsTap;
|
||||
final VoidCallback? onNotificationTap;
|
||||
final RefreshCallback? onRefresh;
|
||||
|
||||
final List<String>? routes;
|
||||
final Widget? routesWidget;
|
||||
final List<Widget>? widgets;
|
||||
final Widget? child;
|
||||
final bool scrollable;
|
||||
|
||||
@@ -60,7 +60,7 @@ class ChickenBasePage extends GetView<BaseLogic> {
|
||||
final Widget? filteringWidget;
|
||||
final void Function(String?)? onSearchChanged;
|
||||
|
||||
final BackGroundWidget? backGroundWidget;
|
||||
final BoxDecoration? backGroundWidget;
|
||||
|
||||
void _onFilterTap() {
|
||||
if (hasFilter && filteringWidget != null) {
|
||||
@@ -82,13 +82,12 @@ class ChickenBasePage extends GetView<BaseLogic> {
|
||||
routes: routes,
|
||||
routesWidget: routesWidget,
|
||||
onPopScopTaped: onPopScopTaped,
|
||||
widgets: widgets,
|
||||
onRefresh: onRefresh,
|
||||
child: child,
|
||||
scrollable: scrollable,
|
||||
onSearchChanged: onSearchChanged,
|
||||
floatingActionButtonLocation: floatingActionButtonLocation,
|
||||
floatingActionButton: floatingActionButton,
|
||||
backGroundWidget: backGroundWidget ?? chickenBackground(),
|
||||
backGroundDecoration: backGroundWidget ?? chickenBackground(),
|
||||
appBar: isFullScreen
|
||||
? null
|
||||
: chickenAppBar(
|
||||
|
||||
Reference in New Issue
Block a user