lecle_loading 0.0.1+2 copy "lecle_loading: ^0.0.1+2" to clipboard
lecle_loading: ^0.0.1+2 copied to clipboard

A flutter widget of loading progress Indicator. Easy to use, easy to extend

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:lecle_loading/indicators.dart';
import 'package:lecle_loading/lecle_loading.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: ShowLoading(),
    );
  }
}

class ShowLoading extends StatefulWidget {
  const ShowLoading({Key? key}) : super(key: key);

  @override
  State<ShowLoading> createState() => _ShowLoadingState();
}

class _ShowLoadingState extends State<ShowLoading> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Loading View'),
      ),
      body: Wrap(
        spacing: 50.0,
        runSpacing: 50.0,
        crossAxisAlignment: WrapCrossAlignment.center,
        alignment: WrapAlignment.center,
        children: [
          ...List.generate(
            IndicatorType.values.length,
            (index) => LecleLoading(
              indicator: IndicatorType.values[index],
              size: 100.0,
              color: Colors.red,
            ),
          ),
        ],
      ),
    );
  }
}
2
likes
160
points
5
downloads

Publisher

verified publisherlecle.vn

Weekly Downloads

A flutter widget of loading progress Indicator. Easy to use, easy to extend

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on lecle_loading