feat(order info): added order info screen

This commit is contained in:
Username1548
2025-04-04 20:21:31 +07:00
parent 9715f4cac9
commit 748484cf8f
387 changed files with 16171 additions and 18199 deletions

View File

@@ -105,8 +105,8 @@ class _FeedScreenContentState extends State<FeedScreenContent> {
? FloatingActionButton.small(
heroTag: 'recipesTagsFilter',
backgroundColor: appTheme.blueA400,
shape: CircleBorder(),
child: Icon(
shape: const CircleBorder(),
child: const Icon(
Icons.filter_list_rounded,
color: Colors.white,
),
@@ -142,7 +142,7 @@ class _FeedScreenContentState extends State<FeedScreenContent> {
BlocBuilder<FeedProfileCubit, ProfileState>(
builder: (context, state) {
return SliverAppBar(
shape: RoundedRectangleBorder(
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(bottom: Radius.circular(12)),
),
backgroundColor: Colors.white,
@@ -178,7 +178,7 @@ class _FeedScreenContentState extends State<FeedScreenContent> {
if (query.length > 2) {
EasyDebounce.debounce(
'searchFeed',
Duration(milliseconds: 500),
const Duration(milliseconds: 500),
() {
switch (_selectedChipIndex) {
case 0:
@@ -202,7 +202,7 @@ class _FeedScreenContentState extends State<FeedScreenContent> {
} else {
EasyDebounce.debounce(
'searchFeed',
Duration(milliseconds: 500),
const Duration(milliseconds: 500),
() {
switch (_selectedChipIndex) {
case 0:
@@ -226,7 +226,7 @@ class _FeedScreenContentState extends State<FeedScreenContent> {
}
},
),
SizedBox(width: 12),
const SizedBox(width: 12),
switch (_selectedChipIndex) {
1 => AddItemButton(
onTap: () => GoRouter.of(context).pushNamed(RecipeCreateScreen.name),
@@ -241,7 +241,7 @@ class _FeedScreenContentState extends State<FeedScreenContent> {
3 => AddItemButton(
onTap: state.profile?.roles.contains('consultant') ?? false ? () => GoRouter.of(context).pushNamed(CreatePlanScreen.name) : null,
),
_ => AddItemButton()
_ => const AddItemButton()
},
],
),
@@ -251,11 +251,11 @@ class _FeedScreenContentState extends State<FeedScreenContent> {
];
},
body: switch (_selectedChipIndex) {
0 => BlogPosts(),
1 => Recipes(),
2 => Diets(),
3 => Plans(),
4 => Consultants(),
0 => const BlogPosts(),
1 => const Recipes(),
2 => const Diets(),
3 => const Plans(),
4 => const Consultants(),
_ => Center(child: Text(chipsLabelList[_selectedChipIndex])),
},
),