ThemeData is a class that holds the color and typography values for a material design theme.
TabBarView is a page view that displays the widget which corresponds to the currently selected tab. Typically used in conjunction with a TabBar.
TabBarView is a concrete class and derives from the StatefulWidget class.
class TabBarView extends StatefulWidget
Think of this as the page that ac...
TabController is a class that coordinates tab selection between a TabBar and a TabBarView.
Here's it's definition:
class TabController extends ChangeNotifier
This widget is important when you want to work with tabs.
You can get the position of the selected tab via the
index property of thi...
DefaultTabController is the
TabController for descendant widgets that don't specify one explicitly.
DefaultTabController derives from the StatefulWidget. This implies it has a mutable state.
class DefaultTabController extends StatefulWidget
DefaultTabController is an inherited widget tha...
A material design TabBar tab.
Tab derives from the StatelessWidget:
class Tab extends StatelessWidget
Tab also resides in the
If both icon and text are provided, the text is displayed below the icon.
More documentation coming soon.
TabBar is a material design widget that displays a horizontal row of tabs.
class TabBar extends StatefulWidget implements PreferredSizeWidget
TabBar resides in the
Mostly TabBar is created as the
AppBar.bottom part of an
AppBar and in conjunction with a
Flutter Tutorials and Examples
How to page/paginate a custom ListView with Images and Text.
In this example we will have a custom listview with images and text and we will paginate them using a next/previous type of pagination.
When the user clicks the next button we navigate over to the next page and when he clicks the previous button we navigate over to the previous page.
This is a flutter Toast tutorial.
We see how to show:
Android Custom RecyclerView with ExpandableLayout
In this class we see how to turn a recyclerview into an ExpandableRecyclerView with expandablelayout. We have complete control over the look of our expandablelayout as it's not some black box just an ordinary recyclerview with an expandablelayout.
This implies that we use the normal
We will maintain our expandstates in a
SparseBooleanArray, a data structure that maps integers into boolean values.
In this case both the title of the expandable textview will be a simple textview. The description will also be a textview however we will wrap it in an expandablelayout.