feat : new main page inspection
This commit is contained in:
@@ -53,7 +53,9 @@ class RAppBar extends StatelessWidget implements PreferredSizeWidget {
|
||||
)
|
||||
: null,
|
||||
leadingWidth: leadingWidth?.toDouble(),
|
||||
leading: leading != null ? Padding(padding: const EdgeInsets.only(right: 6), child: leading) : null,
|
||||
leading: leading != null
|
||||
? Padding(padding: const EdgeInsets.only(right: 6), child: leading)
|
||||
: null,
|
||||
titleSpacing: 8,
|
||||
actions: [
|
||||
if (additionalActions != null) ...additionalActions!,
|
||||
|
||||
@@ -2,9 +2,10 @@ import 'package:flutter/material.dart';
|
||||
import 'package:rasadyar_core/core.dart';
|
||||
|
||||
class RBottomNavigation extends StatefulWidget {
|
||||
const RBottomNavigation({super.key, required this.items});
|
||||
RBottomNavigation({super.key, required this.items,this.mainAxisAlignment});
|
||||
|
||||
final List<RBottomNavigationItem> items;
|
||||
MainAxisAlignment? mainAxisAlignment;
|
||||
|
||||
@override
|
||||
State<RBottomNavigation> createState() => _RBottomNavigationState();
|
||||
@@ -18,9 +19,15 @@ class _RBottomNavigationState extends State<RBottomNavigation> {
|
||||
padding: EdgeInsets.symmetric(horizontal: 11.w, vertical: 18.h),
|
||||
decoration: BoxDecoration(
|
||||
color: AppColor.blueNormal,
|
||||
borderRadius: const BorderRadius.only(topLeft: Radius.circular(32), topRight: Radius.circular(32)),
|
||||
borderRadius: const BorderRadius.only(
|
||||
topLeft: Radius.circular(32),
|
||||
topRight: Radius.circular(32),
|
||||
),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: widget.mainAxisAlignment??MainAxisAlignment.spaceBetween,
|
||||
children: widget.items,
|
||||
),
|
||||
child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: widget.items),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -57,10 +64,18 @@ class RBottomNavigationItem extends StatelessWidget {
|
||||
SvgGenImage.vec(icon).svg(
|
||||
width: 40.w,
|
||||
height: 40.h,
|
||||
colorFilter: ColorFilter.mode(isSelected ? AppColor.blueNormal : Colors.white, BlendMode.srcIn),
|
||||
colorFilter: ColorFilter.mode(
|
||||
isSelected ? AppColor.blueNormal : Colors.white,
|
||||
BlendMode.srcIn,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 5.h),
|
||||
Text(label, style: AppFonts.yekan10.copyWith(color: isSelected ? AppColor.blueNormal : Colors.white)),
|
||||
Text(
|
||||
label,
|
||||
style: AppFonts.yekan10.copyWith(
|
||||
color: isSelected ? AppColor.blueNormal : Colors.white,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user