Skip to content
This repository was archived by the owner on Nov 11, 2023. It is now read-only.

Feature/make back button optional #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add option to hide back action on login screen
  • Loading branch information
Curly committed Jan 4, 2020
commit 11efc8a145034fa740f4d9e4ab20d9c4ef0a0abc
3 changes: 3 additions & 0 deletions lib/flutter_firebase_ui.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class SignInScreen extends StatefulWidget {
this.color = Colors.white,
this.twitterConsumerKey,
this.twitterConsumerSecret,
this.allowBackAction = true,
@required this.showBar,
@required this.avoidBottomInset,
@required this.bottomPadding,
Expand All @@ -35,6 +36,7 @@ class SignInScreen extends StatefulWidget {
final bool avoidBottomInset;
final double horizontalPadding;
final double bottomPadding;
final bool allowBackAction;

@override
_SignInScreenState createState() => new _SignInScreenState();
Expand All @@ -55,6 +57,7 @@ class _SignInScreenState extends State<SignInScreen> {
? new AppBar(
title: new Text(widget.title),
elevation: 4.0,
automaticallyImplyLeading: widget.allowBackAction,
)
: null,
resizeToAvoidBottomInset: widget.avoidBottomInset,
Expand Down