Merge pull request #4 from GaspardMerten/dev/web_support
Adding support for Flutter Web
This commit is contained in:
commit
c520484ef8
3 changed files with 8 additions and 6 deletions
|
@ -20,7 +20,11 @@
|
|||
|
||||
* Fixing an incorrect boolean (iOS picker was inverted with the Android one)
|
||||
|
||||
## 2.0.0
|
||||
## 0.2.0
|
||||
|
||||
* DateFormField now extends FormField. All issues related to this are now fiex
|
||||
* The style of the DateField (and by extension the one of DateFormField) is now rigorously applying the theme or any customization.
|
||||
* The style of the DateField (and by extension the one of DateFormField) is now rigorously applying the theme or any customization.
|
||||
|
||||
## 0.2.1
|
||||
|
||||
* Adding support for Flutter web
|
|
@ -1,5 +1,3 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
|
@ -141,7 +139,7 @@ class DateField extends StatelessWidget {
|
|||
|
||||
/// Shows a dialog asking the user to pick a date !
|
||||
Future<void> _selectDate(BuildContext context) async {
|
||||
if (Platform.isIOS) {
|
||||
if (Theme.of(context).platform == TargetPlatform.iOS) {
|
||||
showModalBottomSheet<void>(
|
||||
context: context,
|
||||
builder: (BuildContext builder) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: date_field
|
||||
description: Contains DateField and DateFormField which allows the user to pick a DateTime from an input field!
|
||||
version: 0.2.0
|
||||
version: 0.2.1
|
||||
homepage: 'https://github.com/GaspardMerten/date_field'
|
||||
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue