5
5
import 'dart:async' ;
6
6
import 'dart:convert' show json;
7
7
8
- import " package:http/http.dart" as http;
8
+ import ' package:http/http.dart' as http;
9
9
import 'package:flutter/material.dart' ;
10
10
import 'package:google_sign_in/google_sign_in.dart' ;
11
11
@@ -50,7 +50,7 @@ class SignInDemoState extends State<SignInDemo> {
50
50
51
51
Future <void > _handleGetContact () async {
52
52
setState (() {
53
- _contactText = " Loading contact info..." ;
53
+ _contactText = ' Loading contact info...' ;
54
54
});
55
55
final http.Response response = await http.get (
56
56
'https://people.googleapis.com/v1/people/me/connections'
@@ -59,8 +59,8 @@ class SignInDemoState extends State<SignInDemo> {
59
59
);
60
60
if (response.statusCode != 200 ) {
61
61
setState (() {
62
- _contactText = " People API gave a ${response .statusCode } "
63
- " response. Check logs for details." ;
62
+ _contactText = ' People API gave a ${response .statusCode } '
63
+ ' response. Check logs for details.' ;
64
64
});
65
65
print ('People API ${response .statusCode } response: ${response .body }' );
66
66
return ;
@@ -69,9 +69,9 @@ class SignInDemoState extends State<SignInDemo> {
69
69
final String namedContact = _pickFirstNamedContact (data);
70
70
setState (() {
71
71
if (namedContact != null ) {
72
- _contactText = " I see you know $namedContact !" ;
72
+ _contactText = ' I see you know $namedContact !' ;
73
73
} else {
74
- _contactText = " No contacts to display." ;
74
+ _contactText = ' No contacts to display.' ;
75
75
}
76
76
});
77
77
}
@@ -118,7 +118,7 @@ class SignInDemoState extends State<SignInDemo> {
118
118
title: Text (_currentUser.displayName ?? '' ),
119
119
subtitle: Text (_currentUser.email ?? '' ),
120
120
),
121
- const Text (" Signed in successfully." ),
121
+ const Text (' Signed in successfully.' ),
122
122
Text (_contactText ?? '' ),
123
123
RaisedButton (
124
124
child: const Text ('SIGN OUT' ),
@@ -134,7 +134,7 @@ class SignInDemoState extends State<SignInDemo> {
134
134
return Column (
135
135
mainAxisAlignment: MainAxisAlignment .spaceAround,
136
136
children: < Widget > [
137
- const Text (" You are not currently signed in." ),
137
+ const Text (' You are not currently signed in.' ),
138
138
RaisedButton (
139
139
child: const Text ('SIGN IN' ),
140
140
onPressed: _handleSignIn,
0 commit comments