A Sample Flutter project showing Bloc Architecture and BDD Testing using Gherkins plugin.
- Clone the project
- Run
flutter pub get
- Run the tests using
dart test_driver/test_config.dart
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
π android
π build
π ios
π assets
> > π fonts
> > > π Raleway-Regular.ttf
> > > π Raleway-Italic.ttf
> > π images
> > > πΌοΈ image1.jpg
> > > πΌοΈ image2.jpg
> > π icons
> > > πΌοΈ cloudicon.png
> > > πΌοΈ thumbsupicon.png
π lib
> π bloc
> > π home_page_bloc.dart
> > π login_page_bloc.dart
> π services
> > π sqflite
> > π api_manager
> π pages
> > π home_page.dart
> > π login_page.dart
> π models
> > π user_model.dart
> > π sample_model.dart
> π widgets
> > π circular_button_widget.dart
> > π common_widget.dart
> π test
> > π homepagewidget.dart
> > π custombuttonwidget.dart
> π test_driver
> > π features
> > > π login.feature
> > > π home.feature
> > π steps
> > > π loginstep.dart
> > π test_config.dart
> π const
> > π color_const.dart
> > π string_const.dart
π³ docker
π jenkins
π pubspec.yaml
π Readme.md
--------------------------------------------------------------# Summary #-------------------------------------------------------------
we use this folder to manage the state of our widgets across screens. each file in the bloc folder should correspond to a specific page data must flow through pages-->bloc-->services-->models-->pages(ui)
-
π Sqflite
- this folder will contain all the database related stuff CRUD irrespective of the type of database
-
π api_manager
- here we do all the api requests and http calls.
- this folder contains all the frontend pages of your application
- In this folder we write the custom widgets,that we have to reuse in mutiple pages
- here you write all your pojo/model classes to pass the data objects across screens
- this folder is by default created by flutter sdk when we create a new project here we do the widget testing
π steps
- here we have to write the steps to implement the feature files
π features
- this file contains the features in the gherkins language for the bdd
- this folder contains some string and color files to use them at mutiple places inorder to keep the code clean and have some meaningful strings and colors in the code.