Questions tagged [flutter]
Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.
23 questions
2
votes
0
answers
110
views
Is this RenderObject implementation following the correct rendering algorithm and intended uses?
I'm trying to see if this RenderObject is well implemented or if it's doing something bad with respect to Flutter rendering algorithm, especially:
Is it ok to call ...
3
votes
1
answer
44
views
DioClient using Clean Architecture following SOLID Principle
I am trying to write an API Client in flutter that follows Clean Architecture, SOLID principle and best programming practices
After completing this, I am going to use it in Repository or DataSource. ...
3
votes
1
answer
114
views
Flutter class extends StatefulWidget and Riverpod extends ConsumerStatefulWidget
I've noticed a difference between the auto-complete code from VS Code using Flutter and the code shown in the Riverpod documentation.
Auto-complete code in VS Code using Flutter. If I do this and ...
5
votes
1
answer
50
views
Created a Generic Row to do a lot of regular operation easily
I create generic Row to handle almost 90 percent of the basic feature.
I need your feedback to make it more flexible and extensible
...
4
votes
1
answer
53
views
Proper Handling of a Single Initialized Multiple FocusNode That is Shared Between Multiple Widget Classes in Flutter
The code works properly in a simplified version of the program I wrote. Here's the code:
...
1
vote
1
answer
90
views
a Hebrew Date picker package in Flutter: single and range date selections
I have implemented a working Hebrew Date Picker package (link on pub.dev) in Flutter that supports both single date and date range selection.
Here's what the date picker looks like in action:
Single ...
5
votes
1
answer
254
views
Flutter Cubit: 2 Screens and Listview
I try to program a small app to track my cost spendings. As state management I use Cubit. As I am a flutter beginner, I wanted to verify if I implemented it correctly.
The UI consists of 2 screens: 1 ...
2
votes
1
answer
193
views
Dart Non-Reentrant Async Lock
This class synchronizes access to an async resource. If retainFutureErrors is false, it will keep retrying until there is a success. Otherwise, the ...
2
votes
0
answers
46
views
Library for managing flutter rebuilds based on state changes
This is my new library for managing flutter rebuilds based on state changes. It is very similar to AnimatedBuilder but takes a factory to create the notifier instead of an instance of the notifier. It ...
1
vote
1
answer
421
views
Am I writing Flutter code in the correct style? [closed]
I'm cleaning up my Flutter code and I'm not sure if I'm writing my Flutter code in the correct style.
First, here's my code to import the file:
...
2
votes
1
answer
372
views
Dart Ioc Container
This package is on pub dev here
It's on Github here
...
5
votes
3
answers
273
views
OOP Pac-man game
INTRODUCTION
I am studying the book Five Lines of Code (2021) by Christian Clause. The book covers several techniques regarding refactoring legacy code. I am learning much and applying several of its ...
3
votes
1
answer
3k
views
Adding multiple items to a list in flutter
I'm new to coding in general and I am working in flutter right now. I've successfully been able to add single string objects into a list but I'm having issues adding an object with multiple strings ...
-1
votes
2
answers
445
views
Should I add optional parameter to my function for test cases? [closed]
I have the function below, I want to access the context globally and I don't know if it's a good idea, I'm getting the context from the Application, I have TestAppliction in the test environment and I ...
2
votes
1
answer
282
views
Flutter input widget with multiple options (monthly/annual/currency/percentage)
I currently have the following code to build this widget:
...