-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
I'm using liquid_progress_indicator_v2 and when using linear indicator, it throws this error
════════ Exception caught by rendering library ═════════════════════════════════
'dart:ui/geometry.dart': Failed assertion: line 1260 pos 15: '<optimized out>': is not true.
The relevant error-causing widget was:
════════════════════════════════════════════════════════════════════════════════
Widget
import 'package:liquid_progress_indicator_v2/liquid_progress_indicator.dart';
class LinearLiquidProgress extends StatelessWidget {
final double value;
final String? child;
const LinearLiquidProgress({
super.key,
required this.value,
this.child,
});
@override
Widget build(BuildContext context) {
return Container(
height: 50,
padding: const EdgeInsets.all(10),
child: LiquidLinearProgressIndicator(
value: value,
valueColor: AlwaysStoppedAnimation(
AppConstant.mainColor,
),
// backgroundColor: Colors.grey[800],
borderColor: AppConstant.mainColor,
borderWidth: 2,
center: Text(
child ?? "",
style: const TextStyle(
fontWeight: FontWeight.bold,
// color: Colors. Amber,
),
),
),
);
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels