Milad-Akarie / skeletonizer

MIT License
367 stars 24 forks source link

Could not convert SwitchListTile widget to skeleton #34

Open hardik-thirstydevs opened 6 months ago

hardik-thirstydevs commented 6 months ago

image

rohitkhatri75436 commented 2 months ago

You can use the "Skeleton.replace" widget when the switch's height and width are static.

Skeleton.replace( 
    height: 34, // according to you 
    width: 40, // according to you 
    child: YOUR_SWITCH_WIDGET_CODE
)
hardik-thirstydevs commented 2 months ago

@rohitkhatri75436 Later I managed by replacing the whole listtile with Skeleton.replace() as Skeletonizer did not recognize/convert the toggle switch of SwitchListTile to skeleton bone automatically. (The purpose of adding this issue is to notify the authors about this)