mirror of
https://github.com/flutter/samples.git
synced 2026-03-21 20:08:16 +00:00
Samples maintenance (#435)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
include: package:pedantic/analysis_options.1.8.0.yaml
|
||||
include: package:pedantic/analysis_options.1.9.0.yaml
|
||||
|
||||
analyzer:
|
||||
strong-mode:
|
||||
|
||||
@@ -40,8 +40,8 @@ class _HomePageState extends State<HomePage> {
|
||||
int _counter = 0;
|
||||
|
||||
Future<void> _launchPlatformCount() async {
|
||||
final int platformCounter =
|
||||
await _methodChannel.invokeMethod('switchView', _counter);
|
||||
final platformCounter =
|
||||
await _methodChannel.invokeMethod<int>('switchView', _counter);
|
||||
setState(() => _counter = platformCounter);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ dependencies:
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
pedantic: ^1.8.0
|
||||
pedantic: ^1.9.0
|
||||
|
||||
flutter:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user