mirror of
https://github.com/flutter/samples.git
synced 2026-04-05 11:11:23 +00:00
Beta (#1234)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -118,7 +118,7 @@ class _SliderCallbackState extends State<SliderLine> {
|
||||
});
|
||||
}
|
||||
|
||||
SchedulerBinding.instance!.addPostFrameCallback(rebuild);
|
||||
SchedulerBinding.instance.addPostFrameCallback(rebuild);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -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)),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user