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.