Comments (4)
Hello! I'm glad you find the content valuable.
As for the questions:
-
Yes, Blocs act very much like ViewModels. All of the actual logic goes into the Use Cases.
-
You make a good point in that reusing the domain and data layers is problematic when you put them inside the individual features. You propose to put domain & data "outside" of features for reusability. I'd put such reusable parts into the core folder and still have the non-reusable ones fall under specific features if that makes sense. At the end of the day, always use the structure which fits your needs.
from flutter-tdd-clean-architecture-course.
Hi @ResoDev,
What if some of the screens need to use multiple features? For example, my app has a screen called statistics which needs to use some of the other features information to show to the users. Which folder should I put this view on? Thanks!
from flutter-tdd-clean-architecture-course.
That suggestion might be the best idea I've heard so far. It would help out with the overall code reusability.
from flutter-tdd-clean-architecture-course.
As per the suggestion my guess is that it would be on core
since it is a reusable feature.
from flutter-tdd-clean-architecture-course.
Related Issues (20)
- [Proposal] Add a license to the project
- get_it error HOT 1
- test network_info_test (at least) does not work properly (Mock problem?) HOT 1
- Null input throws unhandled exception in InputConverter
- There is no test widget HOT 1
- The app shows Cache Failure in release mode.
- Got Error Expected: Actual HOT 2
- Error-The superclass, 'Bloc<NumberTriviaEvent, NumberTriviaState>', has no unnamed constructor that takes no arguments. HOT 1
- Initialization Database f.e. SQLite
- Update course to null safety HOT 7
- type 'Null' is not a subtype of type 'Future<Either<Failure, LocalUser>>' HOT 4
- block tests with flutter_bloc 7.0.0 failing
- Share the same entity between two features HOT 2
- 6-repository-implementation
- data_connection_checker cannot run with sound null safety HOT 3
- Clean architectureflutter HOT 1
- δ½ δΌη¨TDDε?
- parsing nested json
- About entity issues
- Update code HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-tdd-clean-architecture-course.