I'm wondering what's the best practice when working with certain package when i only need one defined method from that package. I remember that i once saw a code sourc...
I am looking for ideas regarding an optimal/minimal structure for the inner render loop in Dart 2, for a 2d game (if that part matters). Clarification / Explan...
<strong>Hello !</strong> Everything is in the title. I have an expansion tile to show members of a group. When lots of people are in a group (here 47), t...
What is the rule of thumb to use an initial method for a widget. Shall I use the: <ul> <li><strong>A. classical stateful widget approach?</strong></li> </ul> <a...
im working on a pdf generator app in flutter, but when i want to add an image to the pdf, it takes too long also i wanted to know how it is possible to add multiple im...
I try to make an apps using long GridView with complexe item. I use GridView.builder which is optimize and it creates visible items (and it do the job !). But in my ca...
Is there a general rule of thumb on <em>where</em> to create widgets to be more optimal (assuming the widget doesn't rely on anything passed into build())? If...
Creating a simple Login/Register UI and need to validate Username/password and noticed that on 'Flutter Performance' inspector if I press multiple times on the button...
<pre><code>import 'dart:ui'; import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { // This widget is the r...
now i am using 2~3 <code>http</code> requests every-time when i open flutter app. <pre class="lang-dart prettyprint-override"><code>void main() async { final Li...
Currently, my StreamBuilders look something like this: <pre><code> StreamBuilder( stream: Firestore.instance.collection(events).s...
I use flutter_inappwebview for fetching the website into the flutter app. I want to save all the resources like JS and CSS file content into the cache from website dur...
Can someone give a simple case where we will immidiately appreciate the importance of disposing viewmodels and at the same time know the repercussions if we don't? My...
Do I need to cache Dart property result in release flutter VM for the best of the best performance? It dartpad, cache will improve performance. <pre><code...
I was wondering how switch which uses strings as a constants in case block is implemented? When I do debug, and do Step by step execution, I see that execution goes fr...