persistent_bottom_nav_bar-5.0.2 Error: The getter ‘backgroundColor’ isn’t defined for the class ‘ThemeData’

  Kiến thức lập trình

/C:/Users/*****/AppData/Local/Pub/Cache/hosted/pub.dev/persistent_bottom_nav_bar-5.0.2/lib/neumorphic_package_by_serge_software/neumorphic_card.dart:57:57: Error: The getter ‘backgroundColor’ isn’t defined for the class ‘ThemeData’.

  • ‘ThemeData’ is from ‘package:flutter/src/material/theme_data.dart’ (‘/C:/flutter/FlutterDev/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 ‘backgroundColor’.

final color = decoration.color ?? Theme.of(context).backgroundColor;

tried out
flutter pub catch clean flutter pub get
not resolved

New contributor

harikeshava is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT