Skip to content

Instantly share code, notes, and snippets.

@Parassharmaa
Created June 14, 2020 10:04
Show Gist options
  • Save Parassharmaa/ed2a7aeeab3ab915a3d25bcec2c360c5 to your computer and use it in GitHub Desktop.
Save Parassharmaa/ed2a7aeeab3ab915a3d25bcec2c360c5 to your computer and use it in GitHub Desktop.
Flutter Bloc Folder Structure
|   main.dart
|   
+---models
|       reports_detail.dart
|       reports_list.dart
|       
+---resources
|   |   api_provider.dart
|   |   graphql_service.dart
|   |   repository.dart
|   |   
|   \---graphql_operation
|           fetch_reports.dart
|           
\---ui
    +---report_detail
    |   |   bloc.dart
    |   |   report_detail.dart
    |   |   report_detail_bloc.dart
    |   |   report_detail_event.dart
    |   |   report_detail_state.dart
    |   |   
    |   \---widget
    +---report_list
    |   |   bloc.dart
    |   |   report_list.dart
    |   |   report_list_bloc.dart
    |   |   report_list_event.dart
    |   |   report_list_state.dart
    |   |   
    |   \---widgets
    |           report_title_widget.dart
    |           
    \---widget
            bottom_loader.dart
            
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment