Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit aa7e621

Browse files
committed
Fix prefer_single_quotes analyzer warnings
1 parent f28d250 commit aa7e621

File tree

1 file changed

+8
-8
lines changed
  • packages/google_sign_in/google_sign_in/example/lib

1 file changed

+8
-8
lines changed

packages/google_sign_in/google_sign_in/example/lib/main.dart

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import 'dart:async';
66
import 'dart:convert' show json;
77

8-
import "package:http/http.dart" as http;
8+
import 'package:http/http.dart' as http;
99
import 'package:flutter/material.dart';
1010
import 'package:google_sign_in/google_sign_in.dart';
1111

@@ -50,7 +50,7 @@ class SignInDemoState extends State<SignInDemo> {
5050

5151
Future<void> _handleGetContact() async {
5252
setState(() {
53-
_contactText = "Loading contact info...";
53+
_contactText = 'Loading contact info...';
5454
});
5555
final http.Response response = await http.get(
5656
'https://people.googleapis.com/v1/people/me/connections'
@@ -59,8 +59,8 @@ class SignInDemoState extends State<SignInDemo> {
5959
);
6060
if (response.statusCode != 200) {
6161
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.';
6464
});
6565
print('People API ${response.statusCode} response: ${response.body}');
6666
return;
@@ -69,9 +69,9 @@ class SignInDemoState extends State<SignInDemo> {
6969
final String namedContact = _pickFirstNamedContact(data);
7070
setState(() {
7171
if (namedContact != null) {
72-
_contactText = "I see you know $namedContact!";
72+
_contactText = 'I see you know $namedContact!';
7373
} else {
74-
_contactText = "No contacts to display.";
74+
_contactText = 'No contacts to display.';
7575
}
7676
});
7777
}
@@ -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

Comments
 (0)