Flutter. How to make AnimationBuilder listen to Multiple Animations?

<pre class="lang-dart prettyprint-override"><code>class _SomeWidgetWithAnimationsState extends State&lt;SomeWidgetWithAnimations&gt; with TickerProviderStateMixin { Ani...

How to create an async callback in Flutter/Dart?

I'm trying to add an async callback to a model in a flutter application so the model can give the view an opportunity to show some dialog before the model continues on...

How to use Function callback if im use to change state with new val on Switch widget?

i tried to change new state with Switch widget but it can't be used, in case i create dynamic function and will to used in widget tree's, in function i send callback f...

onTap of Container in flutter want to call a Callback and also setState of the container

I am new to dart and flutter. I want to execute a callback onTap of a container as below: <pre><code>final VoidCallback onClick; onTap: () { widget.onClick;...

Flutter app not working after integration with existing native app

I have an existing native iOS App that in production already. Now i want a flutter module to be integrated into the existing app. My flutter module works fine when run...

Flutter: How to include switch button in appbar widget?

So I have an appbar widget which work fine: <pre class="lang-dart prettyprint-override"><code>typedef void BoolCallback(bool val); class MyAppBar extends Preferre...

how to use callback function with value in flutter?

I wanted to allow a class that have a callback that passes back data to the main class. So there is two class: First class contain the body of another widget f...

Flutter - Calling methods from one child class to another child class

I just got calling methods from a child class working with help from someone in <a href="https://stackoverflow.com/questions/54786946/flutter-calling-setstate-from-ano...

Dart Callbacks :How to pass void Function(MyType) argument to void Function(dynamic) parameter

I want to build a custom AppBar <code>EntityAdderAppBar</code> that is responsible for adding different business entities to a database(Firestore). The class should ac...

Propagate state between different pages

I've three different <code>MaterialPage</code>. So I use <code>Navigator.push</code> to go from 1 -&gt; 2 -&gt; 3. Now, page 1 make an HTTP request to <code>GET</code>...

VoidCallback, Function(x), Valuechanged&lt;T&gt;, Valuesetter&lt;T&gt; which one for callbacks ? (Flutter/Dart)

I pretty much know that those concepts are used to call a function in another widget or to notify parent that a value changed. I try to understand which one to use dep...

How to wait for forEach to complete with asynchronous callbacks?

sample code <pre><code>Map&lt;String,String&gt; gg={'gg':'abc','kk':'kojk'}; Future&lt;void&gt; secondAsync() async { await Future.delayed(const Duration(second...

I have issues when i will using Function callback

i have custom button widget from different file, then i create <strong>callback function</strong> it might will showing pointer from main function, when i'm running i...

Difference between myFunction, myFunction(), and myFunction.call() in Dart/Flutter

I've noticed that when I have a widget/class that takes Functions as arguments, when it comes time to call those functions, it can be done one of three ways (that I kn...

Flutter CallBack Function

I have a quantity that needs to be updated in the parent widget. Quantity needs to be updated when pressing + or - Icon in the child widget. I passed the callback func...