David Sent ๐Ÿ’™ (@DavidSentDev) profile picture
Germany
Joined July 2022
Photo by David Sent ๐Ÿ’™ (@DavidSentDev)Photo by David Sent ๐Ÿ’™ (@DavidSentDev)
Replying to @luke_pighetti
Had this recently as well. In my case, the culprit was a non-null double value that turned out to be double.nan.
1
27
You can even keep the height of the second container. Setting the crossAxisAlignment to stretch does the trick.
67
Flutter theme mystery: Inside a Theme widget, the first Text ignores the theme, but the second works when explicitly using Theme.of(context). Why this inconsistency in theme inheritance? ๐Ÿค” #FlutterDev dartpad.dev/?id=67af5a6be519โ€ฆ
1
16
Replying to @remi_rousselet
Is code generation in your packages still going to be a thing with macros coming in Dart?
41
Replying to @CFDevelop
Let's not overlook the convenience of methods tied to objects. What about a hybrid approach? Implement methods that internally call pure functions. This way, we get the ease of object-oriented programming and maintain the flexibility of standalone function ๐Ÿค”
3
170
Replying to @luke_pighetti
The 1 megabyte is your limit
1
1
163
Replying to @tadaspetra
What Framework did you use for this?
1
1
102
Replying to @CFDevelop
Agreed. I didn't mean to argue against widgets testing, I was arguing for both widget and unit testing, at least if your logic is a component built for reuse.
1
Replying to @CFDevelop
Mh this seems fine for small projects with artefacts that are not meant to be reused in other projects. Often times you want to reuse logic in other projects with different UI though. Therefore even for testing I go by the credo: Cohesion > Coupling
1
Replying to @remi_rousselet
I created this snippet that adds boilerplate for fromJson/toJson and custom methods. Then I just remove what is not needed. gist.github.com/sentd94/e839โ€ฆ
1
Replying to @remi_rousselet
Is this like the visibility modifiers from languages like Java? If so, are there more?
Replying to @puf
Do you know if there's gonna be built-in Firestore support for location-based queries anytime soon?
1
Sure. Run `flutter create sample` and open the sample project in VsCode. Create folders `a` and `b` inside `lib`. Move `lib/main.dart` to `lib/b/main.dart`. Now move the folder `b` into folder `a`. See `uri_does_not_exist` error in `test/widget_test.dart`.
1
Replying to @craig_labenz
1. Moving files/folders to another folder messes up the imports. Gotta delete broken imports and add all imports again. 2. VSCode 3. Flutter Lint
1
1
Replying to @craig_labenz
1. When typing `AppLocalizations.of(context)...` using gen_l10n, the Quick Fix option won't show the auto import for 'package:flutter_gen/gen_l10n/app_localizations.dart'. Pretty annoying that you have to c&p this manually. 2. VSCode 3. Flutter Lint
1
2