Credit to : Sheikhsoft
A Flutter package for iOS and Android for picking last seven dates and time with analog view.
First, add analog_time_picker
as a [dependency in your pubspec.yaml file]
analog_time_picker:
git:
url: https://github.com/seniorjean/analog_time_picker
No configuration required - the plugin should work out of the box.
No configuration required - the plugin should work out of the box.
import 'package:analog_time_picker/analog_time_picker.dart';
class AnalogDayPick extends StatelessWidget{
Map<String, DateTime> _dateTime = {};
@override
Widget build(BuildContext context) {
return AnalogTimePicker(
onChanged: (Map<String , DateTime value>){
_dateTime = value;
},
);
}
}