expressive_loading_indicator 0.0.1
expressive_loading_indicator: ^0.0.1 copied to clipboard
Material Design 3 Expressive loading indicator port for Flutter
Expressive Loading Indicator #
Material 3 Expressive loading indicator ported to Flutter.
Package #
expressive_loading_indicator on pub.dev.
Usage #
import 'package:expressive_loading_indicator/expressive_loading_indicator.dart';
import 'package:material_new_shapes/material_new_shapes.dart';
ExpressiveLoadingIndicator(
// Custom color
color: Colors.purple,
// Custom size constraints
constraints: BoxConstraints(
minWidth: 64.0,
minHeight: 64.0,
maxWidth: 64.0,
maxHeight: 64.0,
),
// Custom polygon shapes
polygons: [
MaterialShapes.softBurst,
MaterialShapes.pentagon,
MaterialShapes.pill,
],
// Accessibility
semanticsLabel: 'Loading',
semanticsValue: 'In progress',
)
TODO #
- ❌ Add support for ContainedLoadingIndicator - A version that shows the loading indicator inside a container with a background
- ❌ Add support for DeterminateLoadingIndicator - A version that morphs depending on the progress value
Credits #
- Kostia Sokolovskyi for their initial implementation of material_shapes.
External Links #
- Loading Indicator on Material Design.
- Kotlin source implementation on Android Code Search.
License & Attribution #
This package is available under the MIT License.
This package contains Dart ports of components from the Android Open Source Project (AOSP). The original Android components are licensed under the Apache License 2.0. See NOTICE for complete attribution and license details.
Contributing #
Contributions are welcome! Please feel free to submit an Issue or Pull Request.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/amazing-feature) - Commit your Changes (
git commit -m 'Add some amazing feature') - Push to the Branch (
git push origin feature/amazing-feature) - Open a Pull Request