Skip to content

Commit

Permalink
refactor: unnecessary conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicky Maulana committed Jul 12, 2023
1 parent 3a234b7 commit aa4e7b8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/widgets/progress_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ class _ProgressWidgetState extends State<ProgressWidget>
@override
Widget build(BuildContext context) {
final dimenstion = (DeviceUtils.getScaledWidth(context, 1) - 10) * .3;
if (activeColor == null) {
activeColor = Theme.of(context).primaryColor;
}
if (backgroundColor == null) {
backgroundColor = Theme.of(context).disabledColor;
}
final inCurve = ElasticOutCurve(0.38);
// if (activeColor == null) {
// activeColor = Theme.of(context).primaryColor;
// }
// if (backgroundColor == null) {
// backgroundColor = Theme.of(context).disabledColor;
// }
// final inCurve = ElasticOutCurve(0.38);
return Container(
height: dimenstion,
width: dimenstion,
Expand Down

0 comments on commit aa4e7b8

Please sign in to comment.