├── .gitignore ├── .metadata ├── README.md ├── analysis_options.yaml ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ ├── clean_architecture │ │ │ │ └── MainActivity.kt │ │ │ │ └── flutter_clean_architecture │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable-v21 │ │ │ └── launch_background.xml │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-night │ │ │ └── styles.xml │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Podfile.lock ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings ├── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ └── LaunchImage.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ └── README.md │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h └── RunnerTests │ └── RunnerTests.swift ├── lib ├── core │ ├── error │ │ ├── exceptions │ │ │ ├── cache_exception.dart │ │ │ └── server_exception.dart │ │ └── failures │ │ │ ├── cache_failure.dart │ │ │ ├── failure.dart │ │ │ ├── failures.dart │ │ │ ├── invalid_input_failure.dart │ │ │ └── server_failure.dart │ ├── network │ │ ├── network_information.dart │ │ └── network_information_implementation.dart │ ├── use_cases │ │ └── use_case.dart │ └── utilities │ │ └── input_converter.dart ├── features │ └── number_trivia │ │ ├── data │ │ ├── data_sources │ │ │ ├── local_data_source │ │ │ │ ├── number_trivia_local_data_source.dart │ │ │ │ └── number_trivia_local_data_source_implementation.dart │ │ │ └── remote_data_source │ │ │ │ ├── number_trivia_remote_data_source.dart │ │ │ │ └── number_trivia_remote_data_source_implementation.dart │ │ ├── models │ │ │ └── number_trivia_model.dart │ │ └── repositories │ │ │ └── number_trivia_repository_implementation.dart │ │ ├── domain │ │ ├── entities │ │ │ └── number_trivia.dart │ │ ├── repositories │ │ │ └── number_trivia_repository.dart │ │ └── use_cases │ │ │ ├── get_concrete_number_trivia.dart │ │ │ └── get_random_number_trivia.dart │ │ └── presentation │ │ ├── bloc │ │ ├── events │ │ │ ├── get_trivia_for_concrete_number.dart │ │ │ ├── get_trivia_for_random_number.dart │ │ │ └── number_trivia_event.dart │ │ ├── number_trivia_bloc.dart │ │ └── state │ │ │ ├── initial_number_trivia_state.dart │ │ │ ├── loaded_number_trivia_state.dart │ │ │ ├── loading_number_trivia_state.dart │ │ │ ├── number_trivia_retrieval_error_state.dart │ │ │ └── number_trivia_state.dart │ │ ├── routes │ │ └── number_trivia_route.dart │ │ └── widgets │ │ ├── loading_widget.dart │ │ ├── message_display.dart │ │ ├── number_trivia_route_body.dart │ │ ├── trivia_control.dart │ │ ├── trivia_display.dart │ │ └── widgets.dart ├── injection_container.dart └── main.dart ├── pubspec.lock ├── pubspec.yaml ├── test ├── core │ ├── network │ │ └── network_information_implementation_test.dart │ └── utilities │ │ └── input_converter_test.dart ├── features │ └── number_trivia │ │ ├── data │ │ ├── data_sources │ │ │ ├── local_data_source │ │ │ │ └── number_trivia_local_data_source_implementation_test.dart │ │ │ └── remote_data_source │ │ │ │ └── number_trivia_remote_data_source_implementation_test.dart │ │ ├── models │ │ │ └── number_trivia_model_test.dart │ │ └── repositories │ │ │ └── number_trivia_repository_implementation_test.dart │ │ ├── domain │ │ └── use_cases │ │ │ ├── get_concrete_number_trivia_test.dart │ │ │ └── get_random_number_trivia_test.dart │ │ └── presentation │ │ └── bloc │ │ └── number_trivia_bloc_test.dart └── fixtures │ ├── fixture_reader.dart │ ├── trivia.json │ ├── trivia_cached.json │ └── trivia_double.json ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ ├── Icon-512.png │ ├── Icon-maskable-192.png │ └── Icon-maskable-512.png ├── index.html └── manifest.json └── windows ├── .gitignore ├── CMakeLists.txt ├── flutter ├── CMakeLists.txt ├── generated_plugin_registrant.cc ├── generated_plugin_registrant.h └── generated_plugins.cmake └── runner ├── CMakeLists.txt ├── Runner.rc ├── flutter_window.cpp ├── flutter_window.h ├── main.cpp ├── resource.h ├── resources └── app_icon.ico ├── runner.exe.manifest ├── utils.cpp ├── utils.h ├── win32_window.cpp └── win32_window.h /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/.gitignore -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/.metadata -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/README.md -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/analysis_options.yaml -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/.gitignore -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/app/build.gradle -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/app/src/debug/AndroidManifest.xml -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/app/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/clean_architecture/MainActivity.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/app/src/main/kotlin/com/example/clean_architecture/MainActivity.kt -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/flutter_clean_architecture/MainActivity.kt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/app/src/main/kotlin/com/example/flutter_clean_architecture/MainActivity.kt -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/app/src/main/res/drawable-v21/launch_background.xml -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/app/src/main/res/drawable/launch_background.xml -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/app/src/main/res/values-night/styles.xml -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/app/src/main/res/values/styles.xml -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/app/src/profile/AndroidManifest.xml -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/build.gradle -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/gradle.properties -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/android/settings.gradle -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/.gitignore -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Flutter/AppFrameworkInfo.plist -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Flutter/Debug.xcconfig -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Flutter/Release.xcconfig -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Podfile -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Podfile.lock -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/AppDelegate.swift -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Base.lproj/LaunchScreen.storyboard -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Base.lproj/Main.storyboard -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/Runner/Info.plist -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /ios/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/ios/RunnerTests/RunnerTests.swift -------------------------------------------------------------------------------- /lib/core/error/exceptions/cache_exception.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/core/error/exceptions/cache_exception.dart -------------------------------------------------------------------------------- /lib/core/error/exceptions/server_exception.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/core/error/exceptions/server_exception.dart -------------------------------------------------------------------------------- /lib/core/error/failures/cache_failure.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/core/error/failures/cache_failure.dart -------------------------------------------------------------------------------- /lib/core/error/failures/failure.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/core/error/failures/failure.dart -------------------------------------------------------------------------------- /lib/core/error/failures/failures.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/core/error/failures/failures.dart -------------------------------------------------------------------------------- /lib/core/error/failures/invalid_input_failure.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/core/error/failures/invalid_input_failure.dart -------------------------------------------------------------------------------- /lib/core/error/failures/server_failure.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/core/error/failures/server_failure.dart -------------------------------------------------------------------------------- /lib/core/network/network_information.dart: -------------------------------------------------------------------------------- 1 | abstract class NetworkInformation { 2 | Future get isConnected; 3 | } 4 | -------------------------------------------------------------------------------- /lib/core/network/network_information_implementation.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/core/network/network_information_implementation.dart -------------------------------------------------------------------------------- /lib/core/use_cases/use_case.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/core/use_cases/use_case.dart -------------------------------------------------------------------------------- /lib/core/utilities/input_converter.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/core/utilities/input_converter.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/data/data_sources/local_data_source/number_trivia_local_data_source.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/data/data_sources/local_data_source/number_trivia_local_data_source.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/data/data_sources/local_data_source/number_trivia_local_data_source_implementation.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/data/data_sources/local_data_source/number_trivia_local_data_source_implementation.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/data/data_sources/remote_data_source/number_trivia_remote_data_source.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/data/data_sources/remote_data_source/number_trivia_remote_data_source.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/data/data_sources/remote_data_source/number_trivia_remote_data_source_implementation.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/data/data_sources/remote_data_source/number_trivia_remote_data_source_implementation.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/data/models/number_trivia_model.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/data/models/number_trivia_model.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/data/repositories/number_trivia_repository_implementation.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/data/repositories/number_trivia_repository_implementation.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/domain/entities/number_trivia.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/domain/entities/number_trivia.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/domain/repositories/number_trivia_repository.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/domain/repositories/number_trivia_repository.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/domain/use_cases/get_concrete_number_trivia.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/domain/use_cases/get_concrete_number_trivia.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/domain/use_cases/get_random_number_trivia.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/domain/use_cases/get_random_number_trivia.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/bloc/events/get_trivia_for_concrete_number.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/bloc/events/get_trivia_for_concrete_number.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/bloc/events/get_trivia_for_random_number.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/bloc/events/get_trivia_for_random_number.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/bloc/events/number_trivia_event.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/bloc/events/number_trivia_event.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/bloc/number_trivia_bloc.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/bloc/number_trivia_bloc.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/bloc/state/initial_number_trivia_state.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/bloc/state/initial_number_trivia_state.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/bloc/state/loaded_number_trivia_state.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/bloc/state/loaded_number_trivia_state.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/bloc/state/loading_number_trivia_state.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/bloc/state/loading_number_trivia_state.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/bloc/state/number_trivia_retrieval_error_state.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/bloc/state/number_trivia_retrieval_error_state.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/bloc/state/number_trivia_state.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/bloc/state/number_trivia_state.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/routes/number_trivia_route.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/routes/number_trivia_route.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/widgets/loading_widget.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/widgets/loading_widget.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/widgets/message_display.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/widgets/message_display.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/widgets/number_trivia_route_body.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/widgets/number_trivia_route_body.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/widgets/trivia_control.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/widgets/trivia_control.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/widgets/trivia_display.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/widgets/trivia_display.dart -------------------------------------------------------------------------------- /lib/features/number_trivia/presentation/widgets/widgets.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/features/number_trivia/presentation/widgets/widgets.dart -------------------------------------------------------------------------------- /lib/injection_container.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/injection_container.dart -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/lib/main.dart -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/pubspec.lock -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/pubspec.yaml -------------------------------------------------------------------------------- /test/core/network/network_information_implementation_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/test/core/network/network_information_implementation_test.dart -------------------------------------------------------------------------------- /test/core/utilities/input_converter_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/test/core/utilities/input_converter_test.dart -------------------------------------------------------------------------------- /test/features/number_trivia/data/data_sources/local_data_source/number_trivia_local_data_source_implementation_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/test/features/number_trivia/data/data_sources/local_data_source/number_trivia_local_data_source_implementation_test.dart -------------------------------------------------------------------------------- /test/features/number_trivia/data/data_sources/remote_data_source/number_trivia_remote_data_source_implementation_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/test/features/number_trivia/data/data_sources/remote_data_source/number_trivia_remote_data_source_implementation_test.dart -------------------------------------------------------------------------------- /test/features/number_trivia/data/models/number_trivia_model_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/test/features/number_trivia/data/models/number_trivia_model_test.dart -------------------------------------------------------------------------------- /test/features/number_trivia/data/repositories/number_trivia_repository_implementation_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/test/features/number_trivia/data/repositories/number_trivia_repository_implementation_test.dart -------------------------------------------------------------------------------- /test/features/number_trivia/domain/use_cases/get_concrete_number_trivia_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/test/features/number_trivia/domain/use_cases/get_concrete_number_trivia_test.dart -------------------------------------------------------------------------------- /test/features/number_trivia/domain/use_cases/get_random_number_trivia_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/test/features/number_trivia/domain/use_cases/get_random_number_trivia_test.dart -------------------------------------------------------------------------------- /test/features/number_trivia/presentation/bloc/number_trivia_bloc_test.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/test/features/number_trivia/presentation/bloc/number_trivia_bloc_test.dart -------------------------------------------------------------------------------- /test/fixtures/fixture_reader.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/test/fixtures/fixture_reader.dart -------------------------------------------------------------------------------- /test/fixtures/trivia.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/test/fixtures/trivia.json -------------------------------------------------------------------------------- /test/fixtures/trivia_cached.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/test/fixtures/trivia_cached.json -------------------------------------------------------------------------------- /test/fixtures/trivia_double.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/test/fixtures/trivia_double.json -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/web/icons/Icon-512.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/web/index.html -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/web/manifest.json -------------------------------------------------------------------------------- /windows/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/.gitignore -------------------------------------------------------------------------------- /windows/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/CMakeLists.txt -------------------------------------------------------------------------------- /windows/flutter/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/flutter/CMakeLists.txt -------------------------------------------------------------------------------- /windows/flutter/generated_plugin_registrant.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/flutter/generated_plugin_registrant.cc -------------------------------------------------------------------------------- /windows/flutter/generated_plugin_registrant.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/flutter/generated_plugin_registrant.h -------------------------------------------------------------------------------- /windows/flutter/generated_plugins.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/flutter/generated_plugins.cmake -------------------------------------------------------------------------------- /windows/runner/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/runner/CMakeLists.txt -------------------------------------------------------------------------------- /windows/runner/Runner.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/runner/Runner.rc -------------------------------------------------------------------------------- /windows/runner/flutter_window.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/runner/flutter_window.cpp -------------------------------------------------------------------------------- /windows/runner/flutter_window.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/runner/flutter_window.h -------------------------------------------------------------------------------- /windows/runner/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/runner/main.cpp -------------------------------------------------------------------------------- /windows/runner/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/runner/resource.h -------------------------------------------------------------------------------- /windows/runner/resources/app_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/runner/resources/app_icon.ico -------------------------------------------------------------------------------- /windows/runner/runner.exe.manifest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/runner/runner.exe.manifest -------------------------------------------------------------------------------- /windows/runner/utils.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/runner/utils.cpp -------------------------------------------------------------------------------- /windows/runner/utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/runner/utils.h -------------------------------------------------------------------------------- /windows/runner/win32_window.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/runner/win32_window.cpp -------------------------------------------------------------------------------- /windows/runner/win32_window.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Abdullah104/flutter-clean-architecture/HEAD/windows/runner/win32_window.h --------------------------------------------------------------------------------