web_date_picker 1.0.0+2 web_date_picker: ^1.0.0+2 copied to clipboard
Provides a date picker rendering library for web application development.
web_date_picker #
The Web date picker provides a date picker rendering library for web application development.
Based on React date picker.
Installation #
In the dependencies:
section of your pubspec.yaml
, add the following line:
dependencies:
web_date_picker: <latest_version>
Usage #
import 'package:flutter/material.dart';
import 'package:web_date_picker/web_date_picker.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: GestureDetector(
onTap: () {
FocusScope.of(context).requestFocus(FocusNode());
},
child: Scaffold(
body: Center(
child: WebDatePicker(
onChange: (value) {
},
),
),
),
),
);
}
}