Skip to content

Commit e5ff770

Browse files
committed
fix errors and suggestions
1 parent f36abcc commit e5ff770

File tree

98 files changed

+600
-105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+600
-105
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/","dependencies":[]},{"name":"sqflite","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.2/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/","dependencies":[]},{"name":"sqflite","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.2/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2020-06-18 20:42:25.400086","version":"1.20.0-0.0.pre"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/","dependencies":[]},{"name":"sqflite","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.2/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/","dependencies":[]},{"name":"sqflite","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.2/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2020-06-18 21:07:24.089413","version":"1.20.0-0.0.pre"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/","dependencies":[]},{"name":"sqflite","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.2/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/","dependencies":[]},{"name":"sqflite","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.2/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2020-06-18 20:42:32.128506","version":"1.20.0-0.0.pre"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/","dependencies":[]},{"name":"sqflite","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.2/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/","dependencies":[]},{"name":"sqflite","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.2/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2020-06-18 21:07:30.435588","version":"1.20.0-0.0.pre"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/","dependencies":[]},{"name":"sqflite","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.2/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/","dependencies":[]},{"name":"sqflite","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.2/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2020-06-18 20:42:18.936038","version":"1.20.0-0.0.pre"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/","dependencies":[]},{"name":"sqflite","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.2/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/","dependencies":[]},{"name":"sqflite","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.2/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2020-06-18 21:07:18.275769","version":"1.20.0-0.0.pre"}

002-flutter-flare-pt1/03-multiple-areas/lib/smart_flare_animation.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class _SmartFlareAnimationState extends State<SmartFlareAnimation> {
1919
static const double AnimationWidth = 295.0;
2020
static const double AnimationHeight = 251.0;
2121

22-
AnimationToPlay _animationToPlay = AnimationToPlay.Deactivate;
2322
AnimationToPlay _lastPlayedAnimation;
2423

2524
// Flare animation controls
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"cloud_firestore","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.10.0/","dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.3.4/","dependencies":[]}],"android":[{"name":"cloud_firestore","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.10.0/","dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.3.4/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"cloud_firestore","dependencies":["firebase_core"]},{"name":"firebase_core","dependencies":[]}],"date_created":"2020-06-18 20:44:22.194676","version":"1.20.0-0.0.pre"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"cloud_firestore","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.10.0/","dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.3.4/","dependencies":[]}],"android":[{"name":"cloud_firestore","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.10.0/","dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.3.4/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"cloud_firestore","dependencies":["firebase_core"]},{"name":"firebase_core","dependencies":[]}],"date_created":"2020-06-18 21:04:28.179298","version":"1.20.0-0.0.pre"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"cloud_firestore","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.10.0/","dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.3.4/","dependencies":[]}],"android":[{"name":"cloud_firestore","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.10.0/","dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.3.4/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"cloud_firestore","dependencies":["firebase_core"]},{"name":"firebase_core","dependencies":[]}],"date_created":"2020-06-18 20:42:12.339176","version":"1.20.0-0.0.pre"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"cloud_firestore","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.10.0/","dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.3.4/","dependencies":[]}],"android":[{"name":"cloud_firestore","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.10.0/","dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.3.4/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"cloud_firestore","dependencies":["firebase_core"]},{"name":"firebase_core","dependencies":[]}],"date_created":"2020-06-18 21:07:11.571595","version":"1.20.0-0.0.pre"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"cloud_firestore","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.10.0/","dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.3.4/","dependencies":[]}],"android":[{"name":"cloud_firestore","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.10.0/","dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.3.4/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"cloud_firestore","dependencies":["firebase_core"]},{"name":"firebase_core","dependencies":[]}],"date_created":"2020-06-18 20:44:24.016480","version":"1.20.0-0.0.pre"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"cloud_firestore","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.10.0/","dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.3.4/","dependencies":[]}],"android":[{"name":"cloud_firestore","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.10.0/","dependencies":["firebase_core"]},{"name":"firebase_core","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.3.4/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"cloud_firestore","dependencies":["firebase_core"]},{"name":"firebase_core","dependencies":[]}],"date_created":"2020-06-18 21:07:04.773526","version":"1.20.0-0.0.pre"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"connectivity","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/connectivity-0.4.8+6/","dependencies":[]}],"android":[{"name":"connectivity","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/connectivity-0.4.8+6/","dependencies":[]}],"macos":[{"name":"connectivity_macos","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/connectivity_macos-0.1.0+3/","dependencies":[]}],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"connectivity","dependencies":["connectivity_macos"]},{"name":"connectivity_macos","dependencies":[]}],"date_created":"2020-06-18 20:47:28.481631","version":"1.20.0-0.0.pre"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"connectivity","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/connectivity-0.4.8+6/","dependencies":[]}],"android":[{"name":"connectivity","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/connectivity-0.4.8+6/","dependencies":[]}],"macos":[{"name":"connectivity_macos","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/connectivity_macos-0.1.0+3/","dependencies":[]}],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"connectivity","dependencies":["connectivity_macos"]},{"name":"connectivity_macos","dependencies":[]}],"date_created":"2020-06-18 21:12:42.371650","version":"1.20.0-0.0.pre"}

013-dependency-injection/2-final/lib/inherited_injection.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ class InheritedInjection extends InheritedWidget {
1010
AppInfo get appInfo => _appInfo;
1111

1212
static InheritedInjection of(BuildContext context) {
13-
return (context.inheritFromWidgetOfExactType(InheritedInjection)as InheritedInjection);
13+
return (context.dependOnInheritedWidgetOfExactType<InheritedInjection>());
1414
}
1515

1616
@override
17-
bool updateShouldNotify( InheritedInjection oldWidget) {
17+
bool updateShouldNotify(InheritedInjection oldWidget) {
1818
return true;
1919
}
20-
}
20+
}

023-abstraction-setup-fakedata/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class _MyHomePageState extends State<MyHomePage> {
101101
),
102102
Text(
103103
'$_counter',
104-
style: Theme.of(context).textTheme.display1,
104+
style: Theme.of(context).textTheme.headline4,
105105
),
106106
],
107107
),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.11/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.11/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+3/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+1/","dependencies":[]}],"windows":[],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]}],"date_created":"2020-06-18 20:44:47.555107","version":"1.20.0-0.0.pre"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.11/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.11/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+3/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+1/","dependencies":[]}],"windows":[],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]}],"date_created":"2020-06-18 21:10:00.308151","version":"1.20.0-0.0.pre"}

024-abstraction-unit-test/01-start-getit/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class _MyHomePageState extends State<MyHomePage> {
9696
),
9797
Text(
9898
'$_counter',
99-
style: Theme.of(context).textTheme.display1,
99+
style: Theme.of(context).textTheme.headline4,
100100
),
101101
],
102102
),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.11/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.11/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+3/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+1/","dependencies":[]}],"windows":[],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]}],"date_created":"2020-06-18 20:44:56.249044","version":"1.20.0-0.0.pre"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.11/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.11/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+3/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/brandonsneider/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+1/","dependencies":[]}],"windows":[],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]}],"date_created":"2020-06-18 21:10:06.506134","version":"1.20.0-0.0.pre"}

024-abstraction-unit-test/01-start-provider/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class MyApp extends StatelessWidget {
99
Widget build(BuildContext context) {
1010
return MultiProvider(
1111
providers: [],
12-
child: MaterialApp(
12+
child: MaterialApp(
1313
title: 'Flutter Demo',
1414
theme: ThemeData(
1515
// This is the theme of your application.
@@ -100,7 +100,7 @@ class _MyHomePageState extends State<MyHomePage> {
100100
),
101101
Text(
102102
'$_counter',
103-
style: Theme.of(context).textTheme.display1,
103+
style: Theme.of(context).textTheme.headline4,
104104
),
105105
],
106106
),

0 commit comments

Comments
 (0)