Skip to content

Commit d56ed9b

Browse files
author
LavanyaA
authored
Merge pull request #740 from LokeshPalani/master
FLUT-7280- [Others] Moved the source file to master
2 parents 7a5f210 + 7465a23 commit d56ed9b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+145
-153
lines changed

lib/model/sample_view.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,6 @@ class DirectionalitySampleViewState<T extends DirectionalitySampleView>
193193
TextDirection.rtl,
194194
];
195195

196-
@override
197-
void initState() {
198-
super.initState();
199-
}
200-
201196
/// Must call super.
202197
@override
203198
void dispose() {

lib/samples/chart/cartesian_charts/user_interactions/events/events.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@ class _EventsState extends SampleViewState {
198198
},
199199
onMarkerRender: (MarkerRenderArgs args) {
200200
if (!isCardView) {
201-
actionsList.insert(
202-
0, 'Marker (${args.pointIndex.toString()}) was rendered');
201+
actionsList.insert(0, 'Marker (${args.pointIndex}) was rendered');
203202
if (args.pointIndex == 5) {
204203
SchedulerBinding.instance.addPostFrameCallback((_) {
205204
(consoleKey.currentState)?.setState(() {});
@@ -268,8 +267,7 @@ class _EventsState extends SampleViewState {
268267
ColumnSeries<ChartSampleData, String>(
269268
onPointTap: (ChartPointDetails args) {
270269
if (!isCardView) {
271-
actionsList.insert(
272-
0, 'Point (${args.pointIndex.toString()}) was tapped');
270+
actionsList.insert(0, 'Point (${args.pointIndex}) was tapped');
273271
(consoleKey.currentState)?.setState(() {});
274272
}
275273
},

lib/samples/chart/cartesian_charts/user_interactions/trackball/customized_trackball.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ class _TrackballTemplateState extends SampleViewState {
285285
for (int i = 0; i < seriesIndices.length; i++) {
286286
columnChildWidgets.children.add(
287287
Text(
288-
'${trackballDetails.groupingModeInfo!.visibleSeriesList[i].name.toString()} : \$${trackballDetails.groupingModeInfo!.points[i].y.toString()}',
288+
'${trackballDetails.groupingModeInfo!.visibleSeriesList[i].name} : \$${trackballDetails.groupingModeInfo!.points[i].y}',
289289
textAlign: TextAlign.left,
290290
style: _getTrackballTextStyle()),
291291
);
@@ -294,8 +294,7 @@ class _TrackballTemplateState extends SampleViewState {
294294
} else {
295295
columnWidgets.children.add(Text(trackballDetails.point!.x.toString(),
296296
style: _getTrackballTextStyle()));
297-
columnWidgets.children.add(Text(
298-
'\$${trackballDetails.point!.y.toString()}',
297+
columnWidgets.children.add(Text('\$${trackballDetails.point!.y}',
299298
style: TextStyle(
300299
fontWeight: FontWeight.bold,
301300
color: model.themeData.colorScheme.brightness == Brightness.dark

lib/samples/datagrid/columns/datagrid_custom_header.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class _CustomHeaderDataGridState extends SampleViewState {
132132
void buildShowMenu(BuildContext context, DataGridCellTapDetails details) {
133133
const double rowHeight = 56.0;
134134
final RenderBox renderBox =
135-
Overlay.of(context)!.context.findRenderObject()! as RenderBox;
135+
Overlay.of(context).context.findRenderObject()! as RenderBox;
136136
final Offset newPosition = renderBox.globalToLocal(details.globalPosition);
137137
final double dx = newPosition.dx - details.localPosition.dx;
138138
final double dy = newPosition.dy - details.localPosition.dy + rowHeight;

lib/samples/date_picker/date_picker_getting_started.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ class _DateRangePickerOptionState extends State<_DateRangePickerOption> {
733733
child: Text(DateFormat('MM-dd-yyyy').format(_date),
734734
style: TextStyle(
735735
fontSize: 15,
736-
color: theme.textTheme.subtitle2?.color,
736+
color: theme.textTheme.titleSmall?.color,
737737
fontWeight: FontWeight.w600)),
738738
));
739739
}

lib/samples/date_picker/hijri_calendar.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ class _DateRangePickerOptionState extends State<_DateRangePickerOption> {
704704
_date.year.toString(),
705705
style: TextStyle(
706706
fontSize: 15,
707-
color: theme.textTheme.subtitle2?.color,
707+
color: theme.textTheme.titleSmall?.color,
708708
fontWeight: FontWeight.w600))));
709709
}
710710
}

lib/samples/maps/directionality.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class _MapsWithDirectionalityState extends DirectionalitySampleViewState {
193193
child: Align(
194194
child: Text(_title,
195195
textDirection: TextDirection.rtl,
196-
style: Theme.of(context).textTheme.subtitle1))),
196+
style: Theme.of(context).textTheme.titleMedium))),
197197
Expanded(
198198
child: SfMaps(
199199
layers: <MapLayer>[
@@ -224,7 +224,8 @@ class _MapsWithDirectionalityState extends DirectionalitySampleViewState {
224224
text: model.locale == const Locale('ar', 'AE')
225225
? _stateWiseGRPDetails[index].stateLocale
226226
: _stateWiseGRPDetails[index].state,
227-
style: _themeData.textTheme.caption!.copyWith(
227+
style:
228+
_themeData.textTheme.bodySmall!.copyWith(
228229
height: 1.5,
229230
color: _isLightTheme
230231
? const Color.fromRGBO(255, 255, 255, 1)

lib/samples/maps/localization.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class _MapsWithLocalizationState extends LocalizationSampleViewState {
129129
child: Align(
130130
child: Text(_title,
131131
textDirection: TextDirection.rtl,
132-
style: _themeData.textTheme.subtitle1))),
132+
style: _themeData.textTheme.titleMedium))),
133133
Expanded(
134134
child: SfMapsTheme(
135135
data: SfMapsThemeData(
@@ -169,7 +169,7 @@ class _MapsWithLocalizationState extends LocalizationSampleViewState {
169169
Text(
170170
_stateDataLabelsLocale[index],
171171
textDirection: TextDirection.ltr,
172-
style: _themeData.textTheme.caption!
172+
style: _themeData.textTheme.bodySmall!
173173
.copyWith(color: textColor),
174174
),
175175
const SizedBox(height: 5.0),
@@ -179,7 +179,7 @@ class _MapsWithLocalizationState extends LocalizationSampleViewState {
179179
.toString() +
180180
'M sq. km',
181181
textDirection: TextDirection.ltr,
182-
style: _themeData.textTheme.caption!
182+
style: _themeData.textTheme.bodySmall!
183183
.copyWith(color: textColor),
184184
),
185185
],

lib/samples/maps/shape_layer/bubble/bubble.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ class _MapBubblePageState extends SampleViewState
350350
padding: const EdgeInsets.only(top: 15, bottom: 30),
351351
child: Align(
352352
child: Text('Social Media Users Statistics',
353-
style: Theme.of(context).textTheme.subtitle1))),
353+
style: Theme.of(context).textTheme.titleMedium))),
354354
Expanded(
355355
child: SfMaps(
356356
layers: <MapLayer>[
@@ -376,7 +376,7 @@ class _MapBubblePageState extends SampleViewState
376376
child: Text(_getCustomizedString(index),
377377
style: Theme.of(context)
378378
.textTheme
379-
.caption!
379+
.bodySmall!
380380
.copyWith(color: _tooltipTextColor)),
381381
);
382382
},

lib/samples/maps/shape_layer/equal_color_mapping/equal_color_mapping.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class _MapEqualColorMappingPageState extends SampleViewState {
188188
padding: const EdgeInsets.only(top: 15, bottom: 30),
189189
child: Align(
190190
child: Text('European Time Zones',
191-
style: Theme.of(context).textTheme.subtitle1))),
191+
style: Theme.of(context).textTheme.titleMedium))),
192192
Expanded(
193193
child: SfMaps(
194194
layers: <MapLayer>[
@@ -214,7 +214,7 @@ class _MapEqualColorMappingPageState extends SampleViewState {
214214
_timeZones[index].countryName +
215215
' : ' +
216216
_timeZones[index].gmtTime,
217-
style: themeData.textTheme.caption!.copyWith(
217+
style: themeData.textTheme.bodySmall!.copyWith(
218218
color: isLightTheme
219219
? const Color.fromRGBO(255, 255, 255, 1)
220220
: const Color.fromRGBO(10, 10, 10, 1),

0 commit comments

Comments
 (0)