analog_time_picker package for flutter
a flutter package for ios and android for picking last seven dates and time with analog view.
installation
first, add analog_time_picker
as a dependency in your pubspec.yaml file.
ios
no configuration required – the plugin should work out of the box.
android
no configuration required – the plugin should work out of the box.
code for the analog day time picker
import 'package:analog_time_picker/analog_time_picker.dart';
class analogdaypick extends statelesswidget{
map<string, datetime> _datetime = new map();
@override
widget build(buildcontext context) {
return analogtimepicker(
onchanged: getdaytime,
);
}
void getdaytime(map value) {
_datetime = value;
}
}
code for the full page analog day time picker widget
import 'package:analog_time_picker/full_page_analog_time_picker.dart';
class fullpageclock extends statelesswidget {
final map mapdata;
const fullpageclock({key key, this.mapdata}) : super(key: key);
@override
widget build(buildcontext context) {
return fullpageanalogtimepicker(
mapdata: mapdata,
route: "/sixth",
);
}
}
Comments are closed.