shimmer_loading_placeholder_by_me 1.0.0
shimmer_loading_placeholder_by_me: ^1.0.0 copied to clipboard
ShimmerContainer can help you to open new ways to develop your project more creatively.
example/example.dart
import 'package:flutter/material.dart';
import 'package:shimmer_loading_placeholder_by_me/shimmer_loading_placeholder_by_me.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text("Shimmer Example")),
body: Padding(
padding: const EdgeInsets.all(16.0),
child: Column(
children: [
Text("Oddiy Shimmer Placeholder", style: TextStyle(fontSize: 18)),
SizedBox(height: 10),
ShimmerContainer(
child: Container(
height: 100,
width: double.infinity,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
),
),
),
SizedBox(height: 20),
Text("ListView uchun Shimmer", style: TextStyle(fontSize: 18)),
],
),
),
),
);
}
}