mirror of https://github.com/flutter/samples.git
parent
2247c50517
commit
080f181868
@ -1,4 +0,0 @@
|
|||||||
include: package:flutter_lints/flutter.yaml
|
|
||||||
|
|
||||||
# Additional information about this file can be found at
|
|
||||||
# https://dart.dev/guides/language/analysis-options
|
|
||||||
@ -1 +0,0 @@
|
|||||||
include: package:analysis_defaults/flutter.yaml
|
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
include: package:analysis_defaults/flutter.yaml
|
||||||
|
|
||||||
|
analyzer:
|
||||||
|
exclude:
|
||||||
|
- build/**
|
||||||
|
- android/**
|
||||||
|
- ios/**
|
||||||
|
- web/**
|
||||||
|
- windows/**
|
||||||
|
- macos/**
|
||||||
|
- linux/**
|
||||||
@ -1,8 +1,8 @@
|
|||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:asset_transformation/main.dart';
|
import 'package:asset_transformation/main.dart';
|
||||||
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
testWidgets('app can render without exceptions', (WidgetTester tester) async {
|
testWidgets('app can render without exceptions', (tester) async {
|
||||||
await tester.pumpWidget(const MainApp());
|
await tester.pumpWidget(const MainApp());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,19 @@
|
|||||||
|
linter:
|
||||||
|
rules:
|
||||||
|
- combinators_ordering
|
||||||
|
- directives_ordering
|
||||||
|
- omit_local_variable_types
|
||||||
|
- prefer_final_fields
|
||||||
|
- prefer_final_in_for_each
|
||||||
|
- prefer_final_locals
|
||||||
|
- prefer_relative_imports
|
||||||
|
|
||||||
|
analyzer:
|
||||||
|
exclude:
|
||||||
|
- build/**
|
||||||
|
- android/**
|
||||||
|
- ios/**
|
||||||
|
- web/**
|
||||||
|
- windows/**
|
||||||
|
- macos/**
|
||||||
|
- linux/**
|
||||||
Loading…
Reference in new issue