Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解决项目在idea-dart-analysis会出现大量错误的问题 #119

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
analyzer:
strong-mode:
implicit-casts: true
implicit-dynamic: true
errors:
mixin_inherits_from_not_object: ignore
4 changes: 2 additions & 2 deletions lib/test/DemoMixins.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ abstract class Base {
}
}

class A extends Base {
mixin A on Base {
a() {
print("A.a()");
//super.a();
Expand All @@ -29,7 +29,7 @@ class A extends Base {
}
}

class A2 extends Base {
mixin A2 on Base {
a() {
print("A2.a()");
super.a();
Expand Down
10 changes: 6 additions & 4 deletions lib/widget/webview/WebView.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class WebView extends StatefulWidget {

class _WebViewState extends State<WebView> {
final Completer<WebViewController> _controller =
Completer<WebViewController>();
Completer<WebViewController>();

_WebSettings _settings;

Expand All @@ -76,7 +76,9 @@ class _WebViewState extends State<WebView> {
child: AndroidView(
viewType: 'plugins.flutter.io/webview',
onPlatformViewCreated: _onPlatformViewCreated,
gestureRecognizers: widget.gestureRecognizers,
gestureRecognizers: widget.gestureRecognizers.map((e) {
return Factory<OneSequenceGestureRecognizer>(() => e);
}).toSet(),
// WebView content is not affected by the Android view's layout direction,
// we explicitly set it here so that the widget doesn't require an ambient
// directionality.
Expand All @@ -101,7 +103,7 @@ class _WebViewState extends State<WebView> {
super.didUpdateWidget(oldWidget);
final _WebSettings newSettings = _WebSettings.fromWidget(widget);
final Map<String, dynamic> settingsUpdate =
_settings.updatesMap(newSettings);
_settings.updatesMap(newSettings);
_updateSettings(settingsUpdate);
_settings = newSettings;
}
Expand Down Expand Up @@ -207,4 +209,4 @@ void _validateUrlString(String url) {
} on FormatException catch (e) {
throw ArgumentError(e);
}
}
}