forked from eatvio/eatvio_app
feat(order info): added order info screen
This commit is contained in:
@@ -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])),
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user