Flutter Go_Router for new ways of navigation in your app. Go Router is little bit like Getx Router. It takes a list of routes and at the same time you can mention the screen you want to navigate to. To be able to use go_router we need to use MaterialApp.router instead of MaterialApp in our…
Month: August 2022
Flutter Get Tap Position ( X & Y Coordinates)
In Flutter if you wanna get the x and y position or get tap position, you may use GestureDetector widget. It provides onTapDown property which takes a function. This could be used for Gaming tap position
Flutter FutureBuilder vs StreamBuilder
Learn about Flutter FutureBuilder vs StreamBuilder. You use StreamBuilder when you want continuous data from the server or you wanna keep connected to the server and listen to changes. If you wanna learn about sudden changes then you should use StreamBuilder You use FutureBuilder to do a job only once and then you are done….
Flutter NavigationRail Widget | Responsive Menu
Flutter NavigationRail Widget helps you to get responsive site and responsive menu. This widget is built inside flutter framework. So you don’t need to any plugins. To make your site more responsive you can BottomNavigationBar and NavigationRail together. NavigationRail has two important properties. They are destinations and onDestinationSelected and selectedIndex. onDestionationSelected works with selectedIndex to…
Flutter CupertinoContextMenu | Popup Menus on Long Press
Flutter CupertinoContextMenu | Popup Menus on Long Press
Flutter StatefulBuilder Widget | Example
Flutter statefulBuilder widget saves app performance and makes it faster. Some expensive operations could be replaced with this. StatefulBuilder works with a callback function. This callback function triggers rebuild.
Flutter ExpansionTiles | Expansion Panel
EpansionTile helps expand content. Part of the content is hidden and as you click on it, it expands. In general, inside expansionTile you wanna put List. Lists help you feed data using ListView.builder. If you wanna remove a child, you can put IconButton or or any kind of widget that takes onPressed or onTap event….
Flutter Paginated Table | DataTableSource | PaginatedDataTable
We will see how to created a paginated table in Flutter using DataTableSource and PaginatedDataTable
Flutter ListView Builder search
Learn how to search flutter listview builder. _allUsers to keep the original list _foundUsers to work with the searched users. It means the users you find after search we save in _foundUsers. We used two built in functions of Flutter List and Map. They are where() and contains(). They are used for taking each item…
Flutter GridView Builder Example | Better Performance
Flutter GridView Builder comes handy when you have a lot of data to show and you want to be fast displaying them. ListView draws everything at time in column or row. ListView.builder draws in column or row on demand and save memory. GridView.builder draws in column or row on demand and save memory. In general…