Split the UI in several widgets for readability
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class SocialLoginWidget extends StatelessWidget {
|
||||
final Color backgroundColor;
|
||||
final IconData iconData;
|
||||
|
||||
const SocialLoginWidget({
|
||||
Key key,
|
||||
@required this.backgroundColor,
|
||||
@required this.iconData,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return FloatingActionButton(
|
||||
backgroundColor: Colors.grey,
|
||||
child: Icon(
|
||||
iconData,
|
||||
color: Colors.white,
|
||||
),
|
||||
onPressed: () {
|
||||
// Provider.of<LoginState>(context).login(LoginProvider.FACEBOOK);
|
||||
Scaffold.of(context).showSnackBar(SnackBar(
|
||||
content: Text("Comming soon"),
|
||||
));
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user