clock_analog 0.0.4
clock_analog: ^0.0.4 copied to clipboard
Use clock_analog widgets to pick time of day (without dialog box) from main screen.
Clock Analog #
Clock analog allow you select time of day(Time Picker) to your Flutter app without dialog box. One can add it as widgets on screen and select time.
Installation #
- Add the latest version of package to your pubspec.yaml (and run
dart pub get
):
dependencies:
clock_analog: ^0.0.4
- Import the package and use it in your Flutter App.
import 'package:clock_analog/clock_analog.dart';
Example #
class ClockAnalog extends StatelessWidget {
const ClockAnalog({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child:ClockAnalog(
initialTime: TimeOfDay.now(),
onChanged: (value) {
},
),
),
);
}
}