WT 1.1.26+3 bloc migration
This commit is contained in:
@@ -38,7 +38,7 @@ class LiquidCircularProgressIndicator extends ProgressIndicator {
|
||||
|
||||
Color _getBackgroundColor(BuildContext context) => backgroundColor ?? Theme.of(context).backgroundColor;
|
||||
|
||||
Color _getValueColor(BuildContext context) => valueColor?.value ?? Theme.of(context).accentColor;
|
||||
Color _getValueColor(BuildContext context) => valueColor?.value ?? Theme.of(context).colorScheme.secondary;
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => _LiquidCircularProgressIndicatorState();
|
||||
|
||||
@@ -28,7 +28,7 @@ class LiquidCustomProgressIndicator extends ProgressIndicator {
|
||||
|
||||
Color _getBackgroundColor(BuildContext context) => backgroundColor ?? Theme.of(context).backgroundColor;
|
||||
|
||||
Color _getValueColor(BuildContext context) => valueColor?.value ?? Theme.of(context).accentColor;
|
||||
Color _getValueColor(BuildContext context) => valueColor?.value ?? Theme.of(context).colorScheme.secondary;
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => _LiquidCustomProgressIndicatorState();
|
||||
|
||||
@@ -40,7 +40,7 @@ class LiquidLinearProgressIndicator extends ProgressIndicator {
|
||||
|
||||
Color _getBackgroundColor(BuildContext context) => backgroundColor ?? Theme.of(context).backgroundColor;
|
||||
|
||||
Color _getValueColor(BuildContext context) => valueColor?.value ?? Theme.of(context).accentColor;
|
||||
Color _getValueColor(BuildContext context) => valueColor?.value ?? Theme.of(context).colorScheme.secondary;
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => _LiquidLinearProgressIndicatorState();
|
||||
@@ -126,8 +126,7 @@ class _LinearBorderPainter extends CustomPainter {
|
||||
}
|
||||
|
||||
@override
|
||||
bool shouldRepaint(_LinearBorderPainter oldDelegate) =>
|
||||
color != oldDelegate.color || width != oldDelegate.width || radius != oldDelegate.radius;
|
||||
bool shouldRepaint(_LinearBorderPainter oldDelegate) => color != oldDelegate.color || width != oldDelegate.width || radius != oldDelegate.radius;
|
||||
}
|
||||
|
||||
class _LinearClipper extends CustomClipper<Path> {
|
||||
|
||||
Reference in New Issue
Block a user