Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed3ly1997 committed May 26, 2024
1 parent d24733d commit e55b9b4
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 10 deletions.
5 changes: 2 additions & 3 deletions lib/features/home/presentation/screens/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ import 'package:recipes/features/drinks/presentation/screens/drinks_by_category.
import 'package:recipes/features/home/presentation/widgets/common_row.dart';
import 'package:recipes/features/home/presentation/widgets/custom_app_bar.dart';
import 'package:recipes/features/home/presentation/widgets/custom_textfield.dart';
import 'package:recipes/features/recipe/presentation/providers/random_recipe_provider.dart';
import 'package:recipes/features/recipe/presentation/widgets/recipe_item.dart';

import '../../../drinks/presentation/riverpod/drink_details/selected_drink_provider.dart';
import '../../../drinks/presentation/screens/drinkDetails.dart';
import '../../../random_drink/presentation/providers/random_recipe_provider.dart';
import '../../../random_drink/presentation/widgets/recipe_item.dart';

class HomeScreen extends ConsumerWidget {
const HomeScreen({super.key});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import 'package:dartz/dartz.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:recipes/features/recipe/domain/repositories/random_recipe_repository.dart';

import '../../../../core/network/error_model.dart';
import '../../infrastructure/dto/recipe_model.dart';
import '../repositories/random_recipe_repository.dart';

final randomRecipeUseCaseProvider = Provider<RandomRecipeUseCase>(
(ref) => RandomRecipeUseCase(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:dio/dio.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:recipes/features/recipe/infrastructure/data_sources/random_recipe_data_source_impl.dart';
import 'package:recipes/features/random_drink/infrastructure/data_sources/random_recipe_data_source_impl.dart';

import '../../../../core/network/network.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:dio/dio.dart';
import 'package:recipes/features/recipe/infrastructure/data_sources/random_recipe_data_source.dart';

import 'package:recipes/features/random_drink/infrastructure/data_sources/random_recipe_data_source.dart';
import '../../../../core/network/endpoints.dart';
import '../../../../core/network/rest_client.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:dartz/dartz.dart';
import 'package:recipes/core/core.dart';
import 'package:recipes/features/recipe/domain/repositories/random_recipe_repository.dart';
import '../../domain/repositories/random_recipe_repository.dart';
import '../data_sources/random_recipe_data_source.dart';
import '../dto/recipe_model.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:developer';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:recipes/features/recipe/domain/use_cases/random_recipe_usecase.dart';
import '../../domain/use_cases/random_recipe_usecase.dart';
import '../../infrastructure/dto/recipe_model.dart';

final randomRecipeProvider = FutureProvider<List<Recipe>>(
Expand Down
Empty file.
Empty file.

0 comments on commit e55b9b4

Please sign in to comment.