<pre class="lang-dart prettyprint-override"><code>class _SomeWidgetWithAnimationsState extends State<SomeWidgetWithAnimations> with TickerProviderStateMixin { Ani...
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...
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...
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;...
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...
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...
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...
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...
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...
I've three different <code>MaterialPage</code>. So I use <code>Navigator.push</code> to go from 1 -> 2 -> 3. Now, page 1 make an HTTP request to <code>GET</code>...
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...
sample code <pre><code>Map<String,String> gg={'gg':'abc','kk':'kojk'}; Future<void> secondAsync() async { await Future.delayed(const Duration(second...
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...
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...
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...