badjio / skeletons

A Flutter package for building custom skeleton widgets to mimic the page's layout while loading.
BSD 3-Clause "New" or "Revised" License
71 stars 62 forks source link

Library not compatible with upcoming Flutter version => BETA channel #7

Open karkolia opened 3 months ago

karkolia commented 3 months ago

When switching to Flutter beta channel instead of stable (for other bug fixing reasons), a build error appears :

` ../../../../.pub-cache/hosted/pub.dev/skeletons-0.0.3/lib/src/widgets.dart:56:42: Error: The getter 'backgroundColor' isn't defined for the class 'ThemeData'.

The use of Theme.of(context).backgroundColor in implementation of SkeletonAvatar makes the build fail.

jordanliu commented 2 months ago

Package seems like it isn't maintained, I created a version though: https://pub.dev/packages/flutter_skeleton_ui