77import 'dart:async' ;
88import 'dart:convert' show json;
99
10- import " package:http/http.dart" as http;
10+ import ' package:http/http.dart' as http;
1111import 'package:flutter/material.dart' ;
1212import 'package:google_sign_in/google_sign_in.dart' ;
1313
@@ -52,7 +52,7 @@ class SignInDemoState extends State<SignInDemo> {
5252
5353 Future <void > _handleGetContact () async {
5454 setState (() {
55- _contactText = " Loading contact info..." ;
55+ _contactText = ' Loading contact info...' ;
5656 });
5757 final http.Response response = await http.get (
5858 'https://people.googleapis.com/v1/people/me/connections'
@@ -61,8 +61,8 @@ class SignInDemoState extends State<SignInDemo> {
6161 );
6262 if (response.statusCode != 200 ) {
6363 setState (() {
64- _contactText = " People API gave a ${response .statusCode } "
65- " response. Check logs for details." ;
64+ _contactText = ' People API gave a ${response .statusCode } '
65+ ' response. Check logs for details.' ;
6666 });
6767 print ('People API ${response .statusCode } response: ${response .body }' );
6868 return ;
@@ -71,9 +71,9 @@ class SignInDemoState extends State<SignInDemo> {
7171 final String namedContact = _pickFirstNamedContact (data);
7272 setState (() {
7373 if (namedContact != null ) {
74- _contactText = " I see you know $namedContact !" ;
74+ _contactText = ' I see you know $namedContact !' ;
7575 } else {
76- _contactText = " No contacts to display." ;
76+ _contactText = ' No contacts to display.' ;
7777 }
7878 });
7979 }
@@ -118,7 +118,7 @@ class SignInDemoState extends State<SignInDemo> {
118118 title: Text (_currentUser.displayName ?? '' ),
119119 subtitle: Text (_currentUser.email ?? '' ),
120120 ),
121- const Text (" Signed in successfully." ),
121+ const Text (' Signed in successfully.' ),
122122 Text (_contactText ?? '' ),
123123 RaisedButton (
124124 child: const Text ('SIGN OUT' ),
@@ -134,7 +134,7 @@ class SignInDemoState extends State<SignInDemo> {
134134 return Column (
135135 mainAxisAlignment: MainAxisAlignment .spaceAround,
136136 children: < Widget > [
137- const Text (" You are not currently signed in." ),
137+ const Text (' You are not currently signed in.' ),
138138 RaisedButton (
139139 child: const Text ('SIGN IN' ),
140140 onPressed: _handleSignIn,
0 commit comments