Skip to content
Open
Changes from all commits
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
28 changes: 8 additions & 20 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Test extends StatelessWidget {
Scaffold.of(context).showSnackBar(SnackBar(
content: Text('$btn Button Pressed!'),
backgroundColor: Colors.black26,
duration: Duration(milliseconds: 400),
duration: const Duration(milliseconds: 400),
));
}

Expand All @@ -42,59 +42,47 @@ class Test extends StatelessWidget {
_showButtonPressDialog(context, 'Google');
},
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(20)),
borderRadius: BorderRadius.circular(20),
),
),
SizedBox(
height: 10,
),
const SizedBox(height: 10),
SignInButton(
Buttons.Facebook,
onPressed: () {
_showButtonPressDialog(context, 'Facebook');
},
),
SizedBox(
height: 10,
),
const SizedBox(height: 10),
SignInButton(
Buttons.Apple,
onPressed: () {
_showButtonPressDialog(context, 'Apple');
},
),
SizedBox(
height: 10,
),
const SizedBox(height: 10),
SignInButton(
Buttons.Microsoft,
onPressed: () {
_showButtonPressDialog(context, 'Microsoft');
},
),
SizedBox(
height: 10,
),
const SizedBox(height: 10),
SignInButton(
Buttons.GitHub,
text: "Sign up with GitHub",
onPressed: () {
_showButtonPressDialog(context, 'Github');
},
),
SizedBox(
height: 10,
),
const SizedBox(height: 10),
SignInButton(
Buttons.Twitter,
text: "Sign In with Twitter",
onPressed: () {
_showButtonPressDialog(context, 'Twitter');
},
),
SizedBox(
height: 10,
),
const SizedBox(height: 10),
],
),
),
Expand Down