mirror of
https://github.com/flutter/samples.git
synced 2026-04-19 21:41:43 +00:00
23 lines
586 B
Dart
23 lines
586 B
Dart
import 'package:flutter/cupertino.dart';
|
|
|
|
class PickerPage extends StatelessWidget {
|
|
const PickerPage({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return CupertinoPageScaffold(
|
|
navigationBar: const CupertinoNavigationBar(middle: Text('Picker')),
|
|
child: Center(
|
|
child: SizedBox(
|
|
height: 200,
|
|
child: CupertinoPicker(
|
|
itemExtent: 32,
|
|
onSelectedItemChanged: (int index) {},
|
|
children: const <Widget>[Text('One'), Text('Two'), Text('Three')],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|