Skip to content

Instantly share code, notes, and snippets.

View Shafran123's full-sized avatar
👨‍💻
Developing

Shafran Naizer Shafran123

👨‍💻
Developing
View GitHub Profile
@Shafran123
Shafran123 / GoogleSignIn.dart
Created June 4, 2019 06:09
Example code of how to sign in with google.
import 'package:flutter/material.dart';
import 'package:google_sign_in/google_sign_in.dart';
import 'package:firebase_auth/firebase_auth.dart';
void _signInWithGoogle() async {
final GoogleSignInAccount googleUser = await _googleSignIn.signIn();
final GoogleSignInAuthentication googleAuth =
await googleUser.authentication;
final AuthCredential credential = GoogleAuthProvider.getCredential(
@branflake2267
branflake2267 / main.dart
Last active June 22, 2022 02:41
Flutter fonts example use.
import 'package:flutter/material.dart';
const String words1 = "Almost before we knew it, we had left the ground.";
const String words2 = "A shining crescent far beneath the flying vessel.";
const String words3 = "A red flair silhouetted the jagged edge of a wing.";
const String words4 = "Mist enveloped the ship three hours out from port.";
void main() {
runApp(new MyApp());
}