Skip to content

Not able to run a app because below issue in flutter_time_range. You have to Upgrade toggle switch package. #1

@harshj-wappnet

Description

@harshj-wappnet

flutter_time_range uses toggle switch which cause below error :-
../../.pub-cache/hosted/pub.dev/toggle_switch-0.1.9/lib/toggle_switch.dart:106:29: Error: The getter 'accentTextTheme' isn't defined for the class 'ThemeData'.

  • 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('../../flutter/packages/flutter/lib/src/material/theme_data.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentTextTheme'.
    ? Theme.of(context).accentTextTheme.bodyText1!.color
    ^^^^^^^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions