1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-02 09:43:05 +00:00
This commit is contained in:
Brett Morgan
2022-05-11 12:48:11 -07:00
committed by GitHub
parent fb00d0a102
commit ccd68f34e2
242 changed files with 1719 additions and 1430 deletions

View File

@@ -130,7 +130,7 @@ class SelectionUserManagedState extends State<SelectionUserManaged> {
onPressed: _handleClearSelection, child: const Text('Clear Selection'));
return Column(
children: [SizedBox(child: chart, height: 150.0), clearSelection]);
children: [SizedBox(height: 150.0, child: chart), clearSelection]);
}
void _infoSelectionModelUpdated(charts.SelectionModel<String> model) {

View File

@@ -118,7 +118,7 @@ class _SliderCallbackState extends State<SliderLine> {
});
}
SchedulerBinding.instance!.addPostFrameCallback(rebuild);
SchedulerBinding.instance.addPostFrameCallback(rebuild);
}
@override

View File

@@ -43,7 +43,7 @@ class GalleryScaffold extends StatefulWidget {
});
@override
_GalleryScaffoldState createState() => _GalleryScaffoldState();
State<GalleryScaffold> createState() => _GalleryScaffoldState();
}
class _GalleryScaffoldState extends State<GalleryScaffold> {
@@ -61,7 +61,7 @@ class _GalleryScaffoldState extends State<GalleryScaffold> {
SizedBox(height: 250.0, child: widget.childBuilder()),
])),
floatingActionButton: FloatingActionButton(
child: const Icon(Icons.refresh), onPressed: _handleButtonPress),
onPressed: _handleButtonPress, child: const Icon(Icons.refresh)),
);
}
}

View File

@@ -22,13 +22,13 @@ class GalleryApp extends StatefulWidget {
const GalleryApp({Key? key}) : super(key: key);
@override
GalleryAppState createState() => GalleryAppState();
State<GalleryApp> createState() => _GalleryAppState();
}
/// The main gallery app state.
///
/// Controls performance overlay, and instantiates a [Home] widget.
class GalleryAppState extends State<GalleryApp> {
class _GalleryAppState extends State<GalleryApp> {
// Initialize app settings from the default configuration.
bool _showPerformanceOverlay = defaultConfig.showPerformanceOverlay;

View File

@@ -47,7 +47,7 @@ packages:
name: flutter_lints
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.4"
version: "2.0.1"
intl:
dependency: "direct main"
description:
@@ -61,7 +61,7 @@ packages:
name: lints
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
version: "2.0.0"
logging:
dependency: transitive
description:
@@ -103,5 +103,5 @@ packages:
source: hosted
version: "2.1.2"
sdks:
dart: ">=2.14.0 <3.0.0"
dart: ">=2.17.0-206.0.dev <3.0.0"
flutter: ">=2.5.0"

View File

@@ -3,7 +3,7 @@ description: Charts-Flutter Demo
publish_to: none
environment:
sdk: '>=2.12.0 <3.0.0'
sdk: ">=2.17.0-0 <3.0.0"
dependencies:
flutter:
@@ -12,8 +12,8 @@ dependencies:
meta: ^1.1.1
intl: ^0.17.0
dev_dependencies:
flutter_lints: ^1.0.4
dev_dependencies:
flutter_lints: ^2.0.1
flutter:
uses-material-design: true