Skip to content

<optimized out>: is not true. #28

@7Eltantawy

Description

@7Eltantawy

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,
          ),
        ),
      ),
    );
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions