Skip to content

Instantly share code, notes, and snippets.

@felangel
Created April 27, 2019 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felangel/b91e8e550dde0c34f74c8d8c891ff0ae to your computer and use it in GitHub Desktop.
Save felangel/b91e8e550dde0c34f74c8d8c891ff0ae to your computer and use it in GitHub Desktop.
[flutter_firebase_login] Login Button
import 'package:flutter/material.dart';
class LoginButton extends StatelessWidget {
final VoidCallback _onPressed;
LoginButton({Key key, VoidCallback onPressed})
: _onPressed = onPressed,
super(key: key);
@override
Widget build(BuildContext context) {
return RaisedButton(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30.0),
),
onPressed: _onPressed,
child: Text('Login'),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment