loading_builder
A Flutter package providing lightweight and reusable loading widgets, including a basic circular progress indicator, a button loading spinner, and a customizable shimmer effect.
Features
btnLoadingwidget: Adds a loading spinner next to buttons or anywhere a small loader is needed.BuildLoadingwidget: Simple centeredCircularProgressIndicatorfor loading states.ShimmerLoadingwidget: A beautiful shimmer effect for placeholders while content is loading.
Getting Started
Add the dependency in your pubspec.yaml:
dependencies:
loading_builder: latest_version
Usage
Button Loading Spinner
import 'package:loading_builder/loading_builder.dart';
ElevatedButton(
onPressed: isLoading ? null : _submit,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text('Submit'),
btnLoading(loading: isLoading)
],
),
)
Centered Circular Loading
import 'package:loading_builder/loading_builder.dart';
@override
Widget build(BuildContext context) {
return const BuildLoading();
}
Shimmer Loading Placeholder
import 'package:loading_builder/loading_builder.dart';
@override
Widget build(BuildContext context) {
return ShimmerLoading(
height: 100,
width: double.infinity,
);
}
Customization
btnLoadingallows you to adjust size, stroke width, and background color.ShimmerLoadingsupports custom base and highlight colors for better theme integration.
License
This project is licensed under the MIT License.
Ready to make your app's loading experience clean and polished with minimal code? Start using loading_builder today!