Browse Source

Merge pull request #121 from Zazo032/master

Migrate to Diagnosticable mixin
刘彦博 5 years ago
parent
commit
fecd354aa8
3 changed files with 6 additions and 3 deletions
  1. 2 1
      CHANGELOG.md
  2. 3 1
      lib/src/datetime_picker_theme.dart
  3. 1 1
      pubspec.yaml

+ 2 - 1
CHANGELOG.md

@@ -42,4 +42,5 @@
 ## [1.3.1] - add header color
 ## [1.3.2] - add more languages
 ## [1.3.4] - add more languages
-## [1.3.5] - add 12 hour time picker with AM/PM
+## [1.3.5] - add 12 hour time picker with AM/PM
+## [1.3.6] - fix error with Diagnosticable in newer Flutter versions

+ 3 - 1
lib/src/datetime_picker_theme.dart

@@ -1,7 +1,9 @@
 import 'package:flutter/foundation.dart';
 import 'package:flutter/material.dart';
 
-class DatePickerTheme extends Diagnosticable {
+// Migrate DiagnosticableMixin to Diagnosticable until
+// https://github.com/flutter/flutter/pull/51495 makes it into stable (v1.15.21)
+class DatePickerTheme with DiagnosticableMixin {
   final TextStyle cancelStyle;
   final TextStyle doneStyle;
   final TextStyle itemStyle;

+ 1 - 1
pubspec.yaml

@@ -1,6 +1,6 @@
 name: flutter_datetime_picker
 description: A date time picker for flutter, you can choose date / time / date&time in English Dutch and Chinese, and you can also custom your own picker content
-version: 1.3.5
+version: 1.3.6
 homepage: https://github.com/Realank/flutter_datetime_picker
 
 environment: