Milad-Akarie / skeletonizer

MIT License
367 stars 24 forks source link

[BUG] Skeletonized container doesn't shrink in ExpansionTile. #13

Closed xVemu closed 1 year ago

xVemu commented 1 year ago

When I try to use Skeletonizer inside ExpansionTile and close the tile, Skeletonizer doesn't shrink and hide like other widgets. You can see that in the video below.

Not working

2023-09-13 11-32-54

Working

2023-09-13 11-31-53

Example ```dart import 'package:flutter/material.dart'; import 'package:skeletonizer/skeletonizer.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), home: Scaffold( body: Center( child: ExpansionTile(title: Text("Test"), children: [ Skeletonizer( child: Container(height: 60, width: 60, color: Colors.black)), ]), ), ), ); } } ```
Working example ```dart import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), home: Scaffold( body: Center( child: ExpansionTile(title: Text("Test"), children: [ Container(height: 60, width: 60, color: Colors.black), ]), ), ), ); } } ```
Milad-Akarie commented 1 year ago

Hey @xVemu Thanks for reporting, fix in version 0.8.0