Skip to content

Commit

Permalink
fix: spell checker issues
Browse files Browse the repository at this point in the history
  • Loading branch information
itsezlife committed May 21, 2024
1 parent bce3a04 commit 6685095
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 13 deletions.
File renamed without changes.
3 changes: 1 addition & 2 deletions lib/src/models/menu_tab_category.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ class MenuBloc with ChangeNotifier {

void init() async {
final apiClient = server.ApiClient();
final dbmenus = await apiClient.getRestaurantMenu(_restaurant.placeId);
menus = dbmenus
menus = (await apiClient.getRestaurantMenu(_restaurant.placeId))
.map(
(e) => Menu(
category: e.category,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/models/models.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export 'cart.dart';
export 'category.dart';
export 'credit_card.dart';
export 'exceptions.dart';
export 'form_fields/form_fileds.dart';
export 'form_fields/form_fields.dart';
export 'menu.dart';
export 'menu_model.dart';
export 'menu_tab_category.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/models/order_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class OrderDetails {
/// Associated order details order menu items
final List<OrderMenuItem> orderMenuItems;

/// Assosisated order details total order sum
/// Associated order details total order sum
final double totalOrderSum;

/// Associated order details order delivery fee
Expand Down
2 changes: 1 addition & 1 deletion lib/src/models/order_menu_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class OrderMenuItem {
/// Associated order menu items item's name
final String name;

/// Assosisated order menu items item's quantity
/// Associated order menu items item's quantity
final int quantity;

/// Associated order menu items item's price
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class _AddCreditCardModalBottomSheetState
PaymentBloc().addCard(context, _creditCard!);
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('Succesfully saved Credit card!'),
content: Text('Successfully saved Credit card!'),
),
);
logI('Credit card saved');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ class ProfileView extends StatelessWidget {
),
PopupMenuItem<dynamic>(
onTap: () {
// NotificationService.showBigTextNotification(
// title: 'Hello world',
// body: 'How are you',
// );
NotificationService.showOngoingNotification(
title: 'Hello ',
body: 'This is an ongoing notification!',
Expand All @@ -79,7 +75,7 @@ class ProfileView extends StatelessWidget {
child: GestureDetector(
onTap: NotificationService.cancelAllNotifications,
child: const KText(
text: 'Show notifiction',
text: 'Show notification',
),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class _FilterButtonState extends State<FilterButton>
);
}

void _onTapUp(TapUpDetails detailsm, List<Tag> chosenTags) {
void _onTapUp(TapUpDetails details, List<Tag> chosenTags) {
_playAnimation();
Future.delayed(const Duration(milliseconds: 200), () {
context.showCustomModalBottomSheet(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class _HeaderViewState extends State<HeaderView>
});
_animationController.forward();
},
onTapUp: (TapUpDetails detalis) {
onTapUp: (_) {
setState(() {
isTapped = false;
});
Expand Down

0 comments on commit 6685095

Please sign in to comment.