Excellent Programming Tricks

Flutter | Tips and tricks

  1. What is Predicate?
    1. Is a function return true or false.
  2. What is WidgetBuilder?
    1. It is a function that accepts context(BuildContext) as a parameter and returns dynamic widget(s).
  3. BuildContext VS WidgetBuilder VS ItemBuilder VS Builder  [Dynamic nature]
    1. BilderContext - Can allow access to other widgets and properties of the tree. It also holds the location of a widget | object.
    2. WidgetBuilder - Create a new widget (single) based on the BuilderContext | function.
      1. typedef WidgetBuilder = Widget Function(BuildContext context);
    3. ItemBuilder-  Create a new list of widgets (ListView, GridView where each item is intexed) based on the BuilderContext location representations | function.
      1. typedef ItemBuilder = Widget Function(BuildContext context, int index);
    4. Builder - Create a new child [widget] using the WidgetBuilder function based on the BuildContext parameter | widget.
 

No comments:

Post a Comment


Authentic аnd Excellent

Website

HTML Template

Wordpress Theme

Database applications

OR

Application services?

Excellent Programming Tricks (EPT) || Iftekhar-IT || We develops the Web applications and the WordPress templates. || Excellent Programming Tricks (EPT)

© 2020 Blogger Theme by Iftekhar IT || Excellent Programming Tricks

Execllent Programming Tricks. Powered by Blogger.