From 4b8faa693f77ee102b1a6c56018b52071dbae6b1 Mon Sep 17 00:00:00 2001 From: Gaspard Merten Date: Tue, 14 Jul 2020 16:44:57 +0200 Subject: [PATCH 1/2] Adding support for Flutter web --- lib/date_field.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/date_field.dart b/lib/date_field.dart index 037e28f..46a4716 100644 --- a/lib/date_field.dart +++ b/lib/date_field.dart @@ -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 _selectDate(BuildContext context) async { - if (Platform.isIOS) { + if (Theme.of(context).platform == TargetPlatform.iOS) { showModalBottomSheet( context: context, builder: (BuildContext builder) { From 1be972017ec0904919c30ed9063944458bbc5eaf Mon Sep 17 00:00:00 2001 From: Gaspard Merten Date: Tue, 14 Jul 2020 16:46:20 +0200 Subject: [PATCH 2/2] Adding log to changelog --- CHANGELOG.md | 8 ++++++-- pubspec.yaml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb84aa6..47ba2ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. \ No newline at end of file +* 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 \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index b57aefa..bb0f996 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: