This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
View flutterView = Flutter.createView( | |
MainActivity.this, | |
getLifecycle(), | |
"splashRoute" | |
); | |
FrameLayout.LayoutParams frameLayout = | |
new FrameLayout.LayoutParams( | |
ViewGroup.LayoutParams.MATCH_PARENT, | |
ViewGroup.LayoutParams.MATCH_PARENT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter_custom_tabs/flutter_custom_tabs.dart'; | |
void main() { | |
SystemChrome.setEnabledSystemUIOverlays([]); | |
runApp(MyApp()); | |
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( | |
systemNavigationBarColor: Colors.transparent, // navigation bar color |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter_webview_plugin/flutter_webview_plugin.dart'; | |
void main() { | |
SystemChrome.setEnabledSystemUIOverlays([]); | |
runApp(MyApp()); | |
SystemChrome.setSystemUIOverlayStyle( | |
SystemUiOverlayStyle( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Widget _signInButton() { | |
return OutlineButton( | |
splashColor: Colors.grey, | |
onPressed: () {}, | |
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(40)), | |
highlightElevation: 0, | |
borderSide: BorderSide(color: Colors.grey), | |
child: Padding( | |
padding: const EdgeInsets.fromLTRB(0, 10, 0, 10), | |
child: Row( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class LoginPage extends StatefulWidget { | |
@override | |
_LoginPageState createState() => _LoginPageState(); | |
} | |
class _LoginPageState extends State<LoginPage> { | |
@override | |
Widget build(BuildContext context) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:sign_in_flutter/login_page.dart'; | |
import 'package:sign_in_flutter/sign_in.dart'; | |
class FirstScreen extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Container( | |
decoration: BoxDecoration( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:firebase_auth/firebase_auth.dart'; | |
import 'package:google_sign_in/google_sign_in.dart'; | |
final FirebaseAuth _auth = FirebaseAuth.instance; | |
final GoogleSignIn googleSignIn = GoogleSignIn(); | |
Future<String> signInWithGoogle() async { | |
final GoogleSignInAccount googleSignInAccount = await googleSignIn.signIn(); | |
final GoogleSignInAuthentication googleSignInAuthentication = | |
await googleSignInAccount.authentication; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class FirstScreen extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Container(color: Colors.blue[100]), | |
); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:sign_in_flutter/sign_in.dart'; | |
import 'first_screen.dart'; | |
class LoginPage extends StatefulWidget { | |
@override | |
_LoginPageState createState() => _LoginPageState(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'login_page.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( |