Introduce shimmering loader placeholders
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- dart, flutter
- Domain
- mobile-dev
Research direction
The issue names no files or tests; begin by locating the Flutter widget entry points and dependency configuration, then read the linked shimmer package. Done means the requested shimmering parent and placeholder-shape widgets support the shown constructors and row/column usage.
Written by the indexing model from the issue text.
Description
-
A widget that adds a preconfigured shimmering parent.
-
A widget for building the actual shapes, e.g.
/// Pre-configured widget for adding loading shapes to the screen. class PlaceholderShape extends StatelessWidget { const PlaceholderShape({ super.key, this.width, this.height, this.borderRadius, this.color, }); const PlaceholderShape.square({ super.key, double? size, this.borderRadius, this.color, }) : width = size, height = size; /// A rectangular shape that has the size of the text with the given style. PlaceholderShape.fromText({ super.key, required String text, required TextStyle textStyle, this.borderRadius, this.color, }) : width = text.getSize(textStyle).width, height = text.getSize(textStyle).height; final double? width; final double? height; final double? borderRadius; final Color? color; @override Widget build(BuildContext context) { // TODO: Setup the default colour. final defaultColor = Colors.white54; return ClipRRect( borderRadius: BorderRadius.all(Radius.circular(borderRadius ?? .0)), child: SizedBox( width: width, height: height, child: ColoredBox(color: color ?? defaultColor), ), ); } } -
So it can be used like this:
AppShimmer( child: Column( children: [ LoadingPlaceholderShape(...), LoadingPlaceholderShape(...), ], ), // or AppShimmer.column( children: [ LoadingPlaceholderShape(...), LoadingPlaceholderShape(...), ], ), // or AppShimmer.row( children: [ LoadingPlaceholderShape(...), LoadingPlaceholderShape(...), ], ),
- Dominant language
- Dart
- Stars
- 37
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ml-opensource/flutter-template
-
ml-opensource/flutter-template#123 · 1 assignee ·
-
TBD
ml-opensource/flutter-template#120 · 1 assignee ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
ml-opensource/flutter-template#113 · 1 comment · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Setup `retrofit` Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in ml-opensource/flutter-template
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
code quality good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Suwayomi/Suwayomi-Tsumiru#479 ·
-
Build Failure: agora_rtc_engine compiled against android-31 while dependencies require android-34+ Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
conceptadev/noir#95 ·