Getting error DiagnosticableMixin after Update flutter SDK 2.0

785

check flutter_cupertino_date_picker lib. date_picker_theme.dart file have Below Code.

 class DateTimePickerTheme with DiagnosticableMixin {
  }

In Flutter 2.0 version they remove falvor DiagnosticableMixin. so remove DiagnosticableMixin with Diagnosticable. change date_picker_theme.dart file as per below code.

  class DateTimePickerTheme with Diagnosticable {
  }
Share:
785
Sachin Suthar
Author by

Sachin Suthar

I am work as Senior Android App Developer and flutter developer. Designed the features for the database interface relevant for the mobile application from the existing system. Worked on location nearby agents with respect to the customer with the ability to navigate to the agent and call the agent location directly by using Google API's. Worked with the UI team to design the appropriate icon and display for the screens. Developed the database wrapper functions for data staging and modeled the data objects relevant to the mobile application. Used Eclipse IDE to develop the screens for the application using MVC design pattern. Tested the application on multiple android targets and debugged the issues that were found. Worked on the system landscape including development, testing and production and set up and configured the Linux and SQL database. Successfully deployed the app on the Android Marketplace and supported the app for different releases of Android OS.

Updated on December 28, 2022

Comments

  • Sachin Suthar
    Sachin Suthar 10 months

    After Update flutter SDK 2.0 i am getting below error.

    ../../SDK/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_cupertino_date_picker-1.0.26+2/lib/src/date_picker_theme.dart:23:32: Error: Type 'DiagnosticableMixin' not found. class DateTimePickerTheme with DiagnosticableMixin { ^^^^^^^^^^^^^^^^^^^ ../../SDK/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_cupertino_date_picker-1.0.26+2/lib/src/date_picker_theme.dart:23:7: Error: The type 'DiagnosticableMixin' can't be mixed in. class DateTimePickerTheme with DiagnosticableMixin { ^ ../../SDK/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_cupertino_date_picker-1.0.26+2/lib/src/date_picker.dart:103:34: Error: No named parameter with the name 'shadowThemeOnly'. theme: Theme.of(context, shadowThemeOnly: true), ^^^^^^^^^^^^^^^ ../../SDK/flutter/packages/flutter/lib/src/material/theme.dart:107:20: Context: Found this candidate, but the arguments don't match. static ThemeData of(BuildContext context) {