If you don’t know already, Flutter deprecated RaisedButton, FlatButton and some other buttons. So in this little tutorial I’ll show you which buttons to use, and how to make rounded and circular buttons in Flutter 2.0.
Deprecated --> Recommended
RaisedButton --> ElevatedButton
OutlineButton --> OutlinedButton
FlatButton --> TextButton
How to setup Flutter Web with Firebase authentication, Provider/ChangeNotifier and PathUrl strategy.
This is a lightweight template for Flutter Web application, containing a Home page, and a Admin page. This template has standard web navigation (without #), and uses Google Authentication method from Firebase for sining the user in. When successfully signed in, the Provider/ChangeNotifier will emit a state change and navigate to Admin page. This web app supports jumping to specific urls.
This template is meant as a Starter Kit for you to improve and expand upon, maybe you want to use Bloc/Cubit instead of Provider. 🤷♀️
In this tutorial I will show you how to create a user with Firebase Authentication using email and password together with Cubit found in the flutter_bloc plugin. In tutorial 2, I will show the full authentication flow including sign-in and auth state change handling.
I came across Cubit a while ago which really helped me reduce code and files by a-lot, compared to Bloc. In previous Android projects I used MVC and MVVM architecture for organising my code. These architectures are somewhat difficult to implement in Flutter if no plugins are to be used. Also, Flutter handles state changes in…
Flutter and Native Android developer