Skip to content

Commit 93ecb7c

Browse files
committed
Fix not building
1 parent 660147c commit 93ecb7c

File tree

8 files changed

+4
-89
lines changed

8 files changed

+4
-89
lines changed

.flutter-plugins-dependencies

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/snoopy/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.7/","dependencies":[]},{"name":"url_launcher","path":"/Users/snoopy/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.4.5/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/snoopy/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.7/","dependencies":[]},{"name":"url_launcher","path":"/Users/snoopy/.pub-cache/hosted/pub.dartlang.org/url_launcher-5.4.5/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/Users/snoopy/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+1/","dependencies":[]},{"name":"url_launcher_macos","path":"/Users/snoopy/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-0.0.1+5/","dependencies":[]}],"linux":[],"windows":[],"web":[{"name":"url_launcher_web","path":"/Users/snoopy/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-0.1.1+2/","dependencies":[]}]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_macos"]},{"name":"path_provider_macos","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_web","url_launcher_macos"]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]}],"date_created":"2021-04-25 20:32:00.121389","version":"2.0.4"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/snoopy/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.7/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/snoopy/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.7/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/Users/snoopy/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+1/","dependencies":[]}],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_macos"]},{"name":"path_provider_macos","dependencies":[]}],"date_created":"2021-04-25 20:36:38.894387","version":"2.0.4"}

lib/generated_plugin_registrant.dart

Lines changed: 0 additions & 15 deletions
This file was deleted.

lib/main.dart

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import 'package:flutter_factory/ui/widgets/game_provider.dart';
2020
import 'package:flutter_factory/ui/widgets/game_widget.dart';
2121
import 'package:google_fonts/google_fonts.dart';
2222
import 'package:provider/provider.dart';
23-
import 'package:url_launcher/url_launcher.dart';
2423

2524
void main() {
2625
TargetPlatform targetPlatform;
@@ -206,34 +205,8 @@ class HomeButtons extends StatelessWidget {
206205
},
207206
),
208207
SizedBox(height: 24.0),
209-
RaisedButton(
210-
child: Container(
211-
height: 20.0,
212-
margin: const EdgeInsets.all(24.0),
213-
child: Center(
214-
child: Text(
215-
'Discord',
216-
style: Theme.of(context)
217-
.textTheme
218-
.headline6
219-
.copyWith(color: DynamicTheme.of(context).data.positiveActionIconColor),
220-
),
221-
),
222-
),
223-
color: Colors.deepPurple,
224-
onPressed: _launchURL,
225-
),
226208
],
227209
),
228210
);
229211
}
230-
231-
void _launchURL() async {
232-
const url = 'https://discordapp.com/invite/hBNwHvb';
233-
if (await canLaunch(url)) {
234-
await launch(url);
235-
} else {
236-
throw 'Could not launch $url';
237-
}
238-
}
239212
}

lib/ui/theme/dynamic_theme.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class DynamicTheme extends StatefulWidget {
3333
DynamicThemeState createState() => DynamicThemeState();
3434

3535
static DynamicThemeState of(BuildContext context) {
36-
return context.ancestorStateOfType(const TypeMatcher<DynamicThemeState>());
36+
return context.findAncestorStateOfType<DynamicThemeState>();
3737
}
3838
}
3939

lib/ui/theme/theme_provider.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class ThemeProvider extends StatelessWidget {
121121
/// ```
122122
static GameTheme of(BuildContext context, {bool shadowThemeProviderOnly = false}) {
123123
final _InheritedGameThemeProvider inheritedThemeProvider =
124-
context.inheritFromWidgetOfExactType(_InheritedGameThemeProvider);
124+
context.dependOnInheritedWidgetOfExactType<_InheritedGameThemeProvider>();
125125
if (shadowThemeProviderOnly) {
126126
if (inheritedThemeProvider == null || inheritedThemeProvider.theme.isMaterialAppThemeProvider) return null;
127127
return inheritedThemeProvider.theme.data;
@@ -155,7 +155,7 @@ class _InheritedGameThemeProvider extends InheritedTheme {
155155
@override
156156
Widget wrap(BuildContext context, Widget child) {
157157
final _InheritedGameThemeProvider ancestorThemeProvider =
158-
context.ancestorWidgetOfExactType(_InheritedGameThemeProvider);
158+
context.findAncestorWidgetOfExactType<_InheritedGameThemeProvider>();
159159
return identical(this, ancestorThemeProvider) ? child : ThemeProvider(data: theme.data, child: child);
160160
}
161161

macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ import FlutterMacOS
66
import Foundation
77

88
import path_provider_macos
9-
import url_launcher_macos
109

1110
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
1211
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
13-
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
1412
}

pubspec.lock

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,6 @@ packages:
7474
description: flutter
7575
source: sdk
7676
version: "0.0.0"
77-
flutter_web_plugins:
78-
dependency: transitive
79-
description: flutter
80-
source: sdk
81-
version: "0.0.0"
8277
google_fonts:
8378
dependency: "direct main"
8479
description:
@@ -114,13 +109,6 @@ packages:
114109
url: "https://pub.dartlang.org"
115110
source: hosted
116111
version: "3.1.4"
117-
js:
118-
dependency: transitive
119-
description:
120-
name: js
121-
url: "https://pub.dartlang.org"
122-
source: hosted
123-
version: "0.6.3"
124112
matcher:
125113
dependency: transitive
126114
description:
@@ -266,34 +254,6 @@ packages:
266254
url: "https://pub.dartlang.org"
267255
source: hosted
268256
version: "1.3.0"
269-
url_launcher:
270-
dependency: "direct main"
271-
description:
272-
name: url_launcher
273-
url: "https://pub.dartlang.org"
274-
source: hosted
275-
version: "5.4.5"
276-
url_launcher_macos:
277-
dependency: transitive
278-
description:
279-
name: url_launcher_macos
280-
url: "https://pub.dartlang.org"
281-
source: hosted
282-
version: "0.0.1+5"
283-
url_launcher_platform_interface:
284-
dependency: transitive
285-
description:
286-
name: url_launcher_platform_interface
287-
url: "https://pub.dartlang.org"
288-
source: hosted
289-
version: "1.0.6"
290-
url_launcher_web:
291-
dependency: transitive
292-
description:
293-
name: url_launcher_web
294-
url: "https://pub.dartlang.org"
295-
source: hosted
296-
version: "0.1.1+2"
297257
vector_math:
298258
dependency: transitive
299259
description:

pubspec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ dependencies:
2121
sdk: flutter
2222

2323
rxdart: ^0.24.0
24-
url_launcher: ^5.4.5
2524
hive: ^1.4.1+1
2625

2726
hive_flutter: ^0.3.1

0 commit comments

Comments
 (0)