A Flutter application looks alike Mavel app and using Inject and Bloc.
dependencies:
flutter:
sdk: flutter
flutter_launcher_icons: ^0.7.4
cached_network_image: ^2.0.0
rxdart: ^0.18.0
http: ^0.12.0+1
intl: ^0.15.8
inject:
git:
url: https://github.com/google/inject.dart.git
path: package/inject
dependency_overrides:
analyzer: ^0.36.3
dev_dependencies:
flutter_test:
sdk: flutter
mockito: ^4.1.0
build_runner: ^1.0.0
inject_generator:
git:
url: https://github.com/google/inject.dart.git
path: package/inject_generator
-
First you need to install Flutter and the setup as well.
-
Second you need to install Android Studio and Xcode for the virtual device. Clone this repository
git clone git@github.com:erick-adl/flutter-marvel.git
-
Open the project in your favorite IDE, in this case I'm using VSCode, install Dart plugin, then cmd + shift + p, type Pub: Get Packages.
-
cmd + shift + p, type Flutter: Run Flutter Doctor, this command will help you to check if your flutter application can run on both android and ios platform.
-
Navigate to marvel_app/lib/marvel_key.dart and change the publicKey and privateKey to your own api key. To get your api key please register first in here MARVEL API Docs
-
Run:
flutter packages pub run flutter_launcher_icons:main
This command will change the app icons on start, see flutter_launcher_icons
-
Voila, now you can start the application, first navigate inside screeshot folder:
cd marvel_app flutter run --release or To run the application you can press F5.
-
If you want to run this app on iOS, navigate to
marvel_app/ios
then in terminal type:
pod install
This command will help you generate pods file to bundle the library to xcode emulator. See cocoapods
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.