浏览代码

Compatibility with stable branch

Added a comment with more info
Cristian Zazo 5 年之前
父节点
当前提交
a68b348475
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lib/src/datetime_picker_theme.dart

+ 3 - 1
lib/src/datetime_picker_theme.dart

@@ -1,7 +1,9 @@
 import 'package:flutter/foundation.dart';
 import 'package:flutter/material.dart';
 
-class DatePickerTheme with 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;