Progress
A progress indicator component for showing completion status of tasks or operations
A progress indicator component for showing task completion status.
When to use this
- Loading states: Show progress of data loading or file uploads
- Task completion: Display progress of multi-step processes
- Form completion: Indicate how much of a form has been filled out
- Goal tracking: Visualize progress toward goals or milestones
Basic implementation
Basic implementation
import 'package:flutter/material.dart';
import 'package:remix/remix.dart';
class ProgressExample extends StatelessWidget {
const ProgressExample({super.key});
@override
Widget build(BuildContext context) {
return RemixProgress(
value: 0.3,
style: style,
);
}
RemixProgressStyle get style {
return RemixProgressStyle()
.wrapClipRRect(borderRadius: BorderRadius.circular(10))
.trackColor(Colors.grey.shade300)
.indicatorColor(Colors.grey.shade900)
.width(300)
.height(10);
}
}
Fortal styles
Remix includes Fortal-themed style helpers for this component:
Fortal variants
import 'package:flutter/material.dart';
import 'package:remix/remix.dart';
class FortalProgressExample extends StatelessWidget {
const FortalProgressExample({super.key});
@override
Widget build(BuildContext context) {
return Column(
spacing: 16,
children: [
RemixProgress(
value: 0.6,
style: FortalProgressStyle.solid(),
),
RemixProgress(
value: 0.4,
style: FortalProgressStyle.soft(),
),
],
);
}
}
See the FortalProgressStyle source code for all available options.
Constructor
Constructor
const RemixProgress({
Key? key,
required double? value,
RemixProgressStyle style = const RemixProgressStyle.create(),
RemixProgressSpec? styleSpec,
})

