get_shimmer 0.0.2 copy "get_shimmer: ^0.0.2" to clipboard
get_shimmer: ^0.0.2 copied to clipboard

A package to add getX shimmer effect for Flutter projects

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:get_shimmer/get_shimmer.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      title: 'Get Shimmer Demo',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: Scaffold(
        appBar: AppBar(title: Text('Get Shimmer Demo Home')),
        body: ListView.builder(
          itemCount: 20,
          itemBuilder: (context, index) {
            return GetShimmer.fromColors(
              baseColor: Colors.grey.shade300,
              highlightColor: Colors.grey.shade100,
              child: Column(
                children: [
                  ListTile(
                    leading: CircleAvatar(radius: 30),
                    title: Container(
                      margin: EdgeInsets.only(right: Get.width / 2),
                      width: double.infinity,
                      height: 12,
                      decoration: BoxDecoration(
                        color: Colors.white,
                        borderRadius: BorderRadius.circular(8),
                      ),
                    ),
                    subtitle: Container(
                      width: double.infinity,
                      height: 10,
                      decoration: BoxDecoration(
                        color: Colors.white,
                        borderRadius: BorderRadius.circular(8),
                      ),
                    ),
                  ),
                  Divider(),
                ],
              ),
            );
          },
        ),
      ),
    );
  }
}
23
likes
0
points
18
downloads

Publisher

verified publisherhsnalidroos.dev

Weekly Downloads

A package to add getX shimmer effect for Flutter projects

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, get

More

Packages that depend on get_shimmer