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
72 stars 84 forks source link

background color is deprecated in ThemeData change to primary #15

Open mostafahassan8799 opened 1 month ago

arkoak commented 1 week ago

There is a compatability issue with latest flutter versions with skeletons 0.0.3 library, the workaround is to replace the line

Theme.of(context).backgroundColor

with

Theme.of(context).colorScheme.background

in

skeletons-0.0.3/lib/src/widgets.dart

on

line 56 and line 100

rafaellfx commented 1 week ago

There is already a pull request to solve this problem, it just needs to be approved. https://github.com/badjio/skeletons/pull/16