Skip to content

Commit

Permalink
Remove unused imports and clear kitchen name controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Nailsonseat committed Feb 17, 2024
1 parent a90dba1 commit 5cc6c85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/lib/provider/menu_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:logger/logger.dart';
import 'package:smart_insti_app/components/rounded_chip.dart';
import 'package:smart_insti_app/constants/dummy_entries.dart';
import 'package:smart_insti_app/models/mess_menu.dart';
import 'package:smart_insti_app/repositories/mess_menu_repository.dart';
import '../constants/constants.dart';
Expand Down Expand Up @@ -65,9 +64,9 @@ class MenuStateNotifier extends StateNotifier<MenuState> {
super(MenuState(
kitchenNameController: TextEditingController(),
itemNameController: TextEditingController(),
selectedViewMenu: DummyMenus.messMenus.keys.isNotEmpty ? DummyMenus.messMenus.keys.first : null,
selectedViewMenu: null,
items: [],
messMenus: DummyMenus.messMenus,
messMenus: {},
currentMenu: MessMenu(
kitchenName: "",
messMenu: <String, Map<String, List<String>>>{
Expand Down Expand Up @@ -225,7 +224,8 @@ class MenuStateNotifier extends StateNotifier<MenuState> {
for (var menu in messMenus) {
menuDictionary[menu.kitchenName] = menu;
}
final selectedViewMenu = menuDictionary.keys.isNotEmpty ? menuDictionary.keys.first : null;
const selectedViewMenu = null;
state.kitchenNameController.clear();

state = state.copyWith(
selectedMealTypeIndex: 0,
Expand Down

0 comments on commit 5cc6c85

Please sign in to comment.