Skip to main content

Questions tagged [flutter]

Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.

Filter by
Sorted by
Tagged with
1 vote
1 answer
77 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 ...
MendelG's user avatar
  • 107
2 votes
0 answers
218 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 ...
Rasputin221's user avatar
1 vote
1 answer
166 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 ...
Christian Findlay's user avatar
2 votes
0 answers
43 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 ...
Christian Findlay's user avatar
1 vote
1 answer
412 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: ...
My Car's user avatar
  • 121
2 votes
1 answer
361 views

Dart Ioc Container

This package is on pub dev here It's on Github here ...
Christian Findlay's user avatar
3 votes
3 answers
231 views

Remove else-if statement from multi-conditional logic

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 ...
George Lee's user avatar
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 ...
Jared's user avatar
  • 31
-1 votes
2 answers
440 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 ...
ali-star's user avatar
  • 101
2 votes
1 answer
272 views

Flutter input widget with multiple options (monthly/annual/currency/percentage)

I currently have the following code to build this widget: ...
Jan's user avatar
  • 71
8 votes
1 answer
1k views

Make Flutter app on Windows a drop target to accept files

My aim was to provide functionality for a Flutter app on Windows to accept drag-and-dropped files. Flutter apps are written in Dart and compiled to native code, but since this is a cross-platform ...
technolion's user avatar
3 votes
1 answer
69 views

I have a input grid with more than 40 input-fields hardcoded

I am new to flutter and i managed to build a working Grid which does what i want it to do but the code is a duplicated hell and i didn't manage to create it dynamically while still keeping track of ...
Darjusch's user avatar
4 votes
1 answer
154 views

Search filter for words in dart

I need to add search filters for firebase So that I can get search result easily and precisely I was altering the code from hereThis Medium Post I would like to optimize this code. ...
Asbah Riyas's user avatar
2 votes
0 answers
107 views

Building an app in Flutter [closed]

I am just starting to code by myself in Flutter. I've built this so far and here is the image. Can you show me what would be better or cleaner code? I used Row widget for it, but I guess I should ...
Jemomei's user avatar
  • 29
3 votes
0 answers
150 views

Flutter: ToggledButtons using FlatButton

I'm new to Dart and Flutter and I would like to know what do you think about this code and if it's any way that I could improve it :). ...
Vildnex's user avatar
  • 195
2 votes
0 answers
1k views

Flutter - Set the state of the dynamically created child widgets

This is what I wan't to do: In my app I've 2 custom widgets called SelectItems. If the user clicks on item, it changes the background color. Everything is working ...
Runtime Terror's user avatar
3 votes
0 answers
2k views

Custom permission Dialog in Dart

I'm using the flutter_simple_permissions plugin to request permission to read contacts on my flutter application. I want the app to quit when a user denies the permission, and need to show them a ...
Lambasoft's user avatar
  • 131
1 vote
1 answer
6k views

Flutter - Implementing a simple ListView with MVVM

I've implemented a simple ListView in MVVM that displays a few PrepSteps (short form of PreparationSteps). While implementing I wasn't sure about if my approach is "...
Jens's user avatar
  • 897