Minimalist Todo Planner app built around the idea of efficiency and clean aesthetic.
Showcase
|
|
|
|
Development
Deer uses the BLoC (Business Logic Component) pattern to manage app state. If you’re venturing into Flutter and want to harness the power of Streams, this pattern is your golden ticket! Think of BLoC as the wise manager of a bustling restaurant, efficiently directing orders and ensuring smooth kitchen operations. Each screen in Deer is beautifully organized into four main files, much like how a restaurant divides its tasks among chefs, waiters, and managers:
- Actions: The waiters taking orders.
- BLoC: The manager directing the flow of orders.
- Screen (UI itself): The dining room where customers enjoy their meals.
- State: The changing menu reflecting what’s available.
Rather than calling setState() directly (akin to a waiter fretting over each small task), actions are pushed to the BLoC’s input Stream. The BLoC then resolves those actions and updates the output StreamState. Each time the state changes, the screens (just like customers) receive timely updates courtesy of the StreamBuilder, keeping everything in sync. This clear separation of concerns ensures that everyone knows their role and executes it flawlessly.
Typically, a Sink is employed for the input Stream, and a BehaviorSubject for the output Stream. This ensures that your application remains responsive and organized.
Troubleshooting
- **Issue:** App crashing or freezing on launch.
**Solution:** Ensure that your Flutter SDK is updated and check your BLoC setup for any improper Stream handling. - **Issue:** UI not updating with new data.
**Solution:** Double-check that your StreamBuilder is properly set up and listening to state changes. - **Issue:** Conflicting build outputs.
**Solution:** Run the commandflutter packages pub run build_runner build --delete-conflicting-outputsto resolve any build issues.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.


