Exploring Flutter widgets
This repository contains sample apps build while exploring flutter widgets.
Bottom Navigation
- Implementation of Material design Bottom Navigation Bar
Material Chat App
Calculator App
Simple app implementing +,-,*,/ features | |
new TextField( keyboardType: TextInputType.number, decoration: new InputDecoration(hintText: "Enter Number 1"), controller: t1, ), |
Network Request
- App using flutter http module to get a list of images and load them from network inside a widget.
Login Design
State Management using Streams
- using Stateful Widgets
- using Global Instance(BLOC pattern)
- using Scoped Instance(BLOC pattern)
- using RxDart
Downside of the last two approaches is complexity in merging of two streams. Solution: RxDart Implementation
CryptoApp
- App which fetches data from Coinmarket API and displays a list of cryptocurrencies in a ListView
ListView | |
Future getCurrenciesFromApi() async { String url = "https://api.coinmarketcap.com/v1/ticker/?limit=50"; http.Response response = await http.get(url); return json.decode(response.body); } |
Stepper Widger
- Implementation of Stepper widget
Alert Dialog
- Implementation of Alert dialog
Snackbar
- Implementation of Snackbar
Build Snackbar Widget | |
onPressed: () => Scaffold.of(context) .showSnackBar( new SnackBar( content: new Text("File downloading started"), duration: new Duration(seconds: 3), )), |