From df78cf45219a2efba8ce9ec0be9b2900e3b5d707 Mon Sep 17 00:00:00 2001 From: "deviaruna.murugan" Date: Wed, 25 Sep 2019 18:20:08 +0530 Subject: [PATCH 1/2] warning cleared in gauge samples --- lib/samples/gauge/axis_feature/non_linearlabel.dart | 5 +---- lib/samples/gauge/pointers/multiple_ranges.dart | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/samples/gauge/axis_feature/non_linearlabel.dart b/lib/samples/gauge/axis_feature/non_linearlabel.dart index efb6faa9..99af6050 100644 --- a/lib/samples/gauge/axis_feature/non_linearlabel.dart +++ b/lib/samples/gauge/axis_feature/non_linearlabel.dart @@ -4,7 +4,6 @@ import 'package:flutter_examples/model/model.dart'; import 'package:flutter_examples/widgets/flutter_backdrop.dart'; import 'package:scoped_model/scoped_model.dart'; import 'package:url_launcher/url_launcher.dart'; -import 'package:intl/intl.dart' show NumberFormat; class RadialNonLinearLabel extends StatefulWidget { final SubItemList sample; @@ -249,9 +248,7 @@ class CustomAxis extends RadialAxis{ color: Colors.grey, thickness: 10,), radiusFactor: radiusFactor, - ){ - - } + ); @override List generateVisibleLabels(){ diff --git a/lib/samples/gauge/pointers/multiple_ranges.dart b/lib/samples/gauge/pointers/multiple_ranges.dart index 90095308..2317daa8 100644 --- a/lib/samples/gauge/pointers/multiple_ranges.dart +++ b/lib/samples/gauge/pointers/multiple_ranges.dart @@ -223,7 +223,6 @@ SfRadialGauge getMultipleRangePointerExampleGauge(bool isTileView) { ); } -double _position = 0.25; From dfb2f6463ea961e680aa58d8d76f3443c9e26b06 Mon Sep 17 00:00:00 2001 From: "deviaruna.murugan" Date: Wed, 25 Sep 2019 18:32:15 +0530 Subject: [PATCH 2/2] warning cleared in gauge sample --- lib/samples/gauge/pointers/multiple_ranges.dart | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/samples/gauge/pointers/multiple_ranges.dart b/lib/samples/gauge/pointers/multiple_ranges.dart index 2317daa8..9f3c710f 100644 --- a/lib/samples/gauge/pointers/multiple_ranges.dart +++ b/lib/samples/gauge/pointers/multiple_ranges.dart @@ -96,10 +96,6 @@ class _FrontPanelState extends State { _FrontPanelState(this.sample); @override Widget build(BuildContext context) { - setState((){ - _position = MediaQuery.of(context).orientation == Orientation.portrait ? 0.2 : 0.33; - }); - return ScopedModelDescendant( rebuildOnChange: true, builder: (context, _, model) {