refactor: migrate MediaQuery properties to InheritedModel (#1115)

Co-authored-by: Ushie <ushiekane@gmail.com>
This commit is contained in:
Dhruvan Bhalara
2023-08-10 17:55:07 +05:30
committed by GitHub
parent f5e45ead26
commit 97e37f304b
7 changed files with 9 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ class _GradientProgressIndicatorState extends State<GradientProgressIndicator> {
),
),
height: 5,
width: MediaQuery.of(context).size.width * widget.progress!,
width: MediaQuery.sizeOf(context).width * widget.progress!,
),
);
}