mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 23:08:59 +00:00
initial gallery
This commit is contained in:
22
cupertino_gallery/lib/widgets/time_picker_page.dart
Normal file
22
cupertino_gallery/lib/widgets/time_picker_page.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
class TimePickerPage extends StatelessWidget {
|
||||
const TimePickerPage({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return CupertinoPageScaffold(
|
||||
navigationBar: const CupertinoNavigationBar(
|
||||
middle: Text('Time Picker'),
|
||||
),
|
||||
child: Center(
|
||||
child: SizedBox(
|
||||
height: 200,
|
||||
child: CupertinoTimerPicker(
|
||||
onTimerDurationChanged: (Duration newDuration) {},
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user