This is how to set top margin: In a similar way you set the bottom margin like so: To set the left or right margin simply just change top to left or right inside the EdgeInsets.only function. Set the left margin Set the right margin To set margin for all sides use the .all
Category Archives: Flutter
Flutter Firebase Authentication Example — showing a Home screen if logged in
This is a Flutter Firebase authentication example (using firebase_auth) were we are showing a Home screen (widget) if logged in and another screen (widget) if logged out. The relevant important dart code for actually listening if the user is logged in or not can be found at the highlighted lines. I am using firebase_auth: ^1.1.3 …
Continue reading “Flutter Firebase Authentication Example — showing a Home screen if logged in”