Skip to content

Commit 6fb1e93

Browse files
author
LavanyaA
authored
Merge pull request #817 from LokeshPalani/master
FLUT-846040 - [Others] Moved the volume 3 release to master
2 parents 402f034 + 2ac9c19 commit 6fb1e93

15 files changed

+360
-340
lines changed

lib/model/helper.dart

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ Widget getLeftSideDrawer(SampleModel model) {
601601
onTap: () {
602602
Feedback.forLongPress(context);
603603
launchUrl(Uri.parse(
604-
'https://play.google.com/store/apps/details?id=com.syncfusion.samplebrowser&hl=en'));
604+
'https://play.google.com/store/apps/details?id=com.syncfusion.sampleBrowser.maui&pcampaignid=web_share'));
605605
},
606606
child: Column(
607607
children: <Widget>[
@@ -614,24 +614,24 @@ Widget getLeftSideDrawer(SampleModel model) {
614614
const EdgeInsets.fromLTRB(
615615
15, 0, 0, 0),
616616
child: Image.asset(
617-
'images/img_xamarin.png',
617+
'images/img_maui.png',
618618
fit: BoxFit.contain,
619619
height: 28,
620620
width: 28)),
621621
Container(
622-
padding:
623-
const EdgeInsets.fromLTRB(
624-
10, 0, 0, 0),
625-
child: Text('Xamarin Demo',
626-
style: TextStyle(
627-
color: model
628-
.drawerTextIconColor,
629-
fontSize: 16,
630-
letterSpacing: 0.4,
631-
fontFamily:
632-
'Roboto-Regular',
633-
fontWeight:
634-
FontWeight.normal))),
622+
padding: const EdgeInsets.fromLTRB(
623+
10, 0, 0, 0),
624+
child: Text('MAUI Demo',
625+
style: TextStyle(
626+
color: model
627+
.drawerTextIconColor,
628+
fontSize: 16,
629+
letterSpacing: 0.4,
630+
fontFamily:
631+
'Roboto-Regular',
632+
fontWeight:
633+
FontWeight.normal)),
634+
),
635635
const Spacer(),
636636
Icon(Icons.arrow_forward,
637637
color: model.backgroundColor),
@@ -648,7 +648,7 @@ Widget getLeftSideDrawer(SampleModel model) {
648648
onTap: () {
649649
Feedback.forLongPress(context);
650650
launchUrl(Uri.parse(
651-
'https://play.google.com/store/apps/details?id=com.syncfusion.xamarin.uikit&hl=en'));
651+
'https://play.google.com/store/apps/details?id=com.syncfusion.samplebrowser&hl=en'));
652652
},
653653
child: Column(
654654
children: <Widget>[
@@ -661,24 +661,24 @@ Widget getLeftSideDrawer(SampleModel model) {
661661
const EdgeInsets.fromLTRB(
662662
15, 0, 0, 0),
663663
child: Image.asset(
664-
'images/img_xamarin_ui.png',
664+
'images/img_xamarin.png',
665665
fit: BoxFit.contain,
666666
height: 28,
667667
width: 28)),
668668
Container(
669-
padding: const EdgeInsets.fromLTRB(
670-
10, 0, 0, 0),
671-
child: Text('Xamarin UI kit Demo',
672-
style: TextStyle(
673-
color: model
674-
.drawerTextIconColor,
675-
fontSize: 16,
676-
letterSpacing: 0.4,
677-
fontFamily:
678-
'Roboto-Regular',
679-
fontWeight:
680-
FontWeight.normal)),
681-
),
669+
padding:
670+
const EdgeInsets.fromLTRB(
671+
10, 0, 0, 0),
672+
child: Text('Xamarin Demo',
673+
style: TextStyle(
674+
color: model
675+
.drawerTextIconColor,
676+
fontSize: 16,
677+
letterSpacing: 0.4,
678+
fontFamily:
679+
'Roboto-Regular',
680+
fontWeight:
681+
FontWeight.normal))),
682682
const Spacer(),
683683
Icon(Icons.arrow_forward,
684684
color: model.backgroundColor),
@@ -695,7 +695,7 @@ Widget getLeftSideDrawer(SampleModel model) {
695695
onTap: () {
696696
Feedback.forLongPress(context);
697697
launchUrl(Uri.parse(
698-
'https://play.google.com/store/apps/details?id=com.Syncfusion.ej2&hl=en'));
698+
'https://play.google.com/store/apps/details?id=com.syncfusion.xamarin.uikit&hl=en'));
699699
},
700700
child: Column(
701701
children: <Widget>[
@@ -708,14 +708,14 @@ Widget getLeftSideDrawer(SampleModel model) {
708708
const EdgeInsets.fromLTRB(
709709
15, 0, 0, 0),
710710
child: Image.asset(
711-
'images/img_JS.png',
711+
'images/img_xamarin_ui.png',
712712
fit: BoxFit.contain,
713713
height: 28,
714714
width: 28)),
715715
Container(
716716
padding: const EdgeInsets.fromLTRB(
717717
10, 0, 0, 0),
718-
child: Text('JavaScript Demo',
718+
child: Text('Xamarin UI kit Demo',
719719
style: TextStyle(
720720
color: model
721721
.drawerTextIconColor,

lib/model/mobile_view.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,9 @@ class _LayoutPageState extends State<LayoutPage> {
537537
: const Color.fromRGBO(
538538
246, 117, 0, 1))
539539
: Colors.transparent,
540-
borderRadius: const BorderRadius.all(
541-
Radius.circular(10.0))),
540+
borderRadius:
541+
const BorderRadius.all(
542+
Radius.circular(10.0))),
542543
padding: const EdgeInsets.fromLTRB(
543544
5, 2.7, 5, 2.7),
544545
child: Text(

lib/sample_details.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,7 +2680,6 @@
26802680
},
26812681
{
26822682
"type": "sample",
2683-
"status": "New",
26842683
"title": "Column Drag and Drop",
26852684
"key": "datagrid_column_drag_and_drop",
26862685
"codeLink": "https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/datagrid/columns/datagrid_column_drag_and_drop.dart",
@@ -3190,7 +3189,7 @@
31903189
"type": "sample",
31913190
"title": "Form Filling",
31923191
"key": "pdf_viewer_form_filling",
3193-
"status": "New",
3192+
"status": "Updated",
31943193
"codeLink": "https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/pdf_viewer/pdf_viewer_form_filling.dart"
31953194
}
31963195
]

lib/samples/calendar/appointment_editor.dart

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3680,7 +3680,7 @@ class _AppointmentEditorWebState extends State<AppointmentEditorWeb> {
36803680
),
36813681
padding:
36823682
const EdgeInsets
3683-
.only(
3683+
.only(
36843684
bottom: 3),
36853685
onPressed:
36863686
_addInterval))),
@@ -4391,7 +4391,7 @@ class _AppointmentEditorWebState extends State<AppointmentEditorWeb> {
43914391
child: Padding(
43924392
padding:
43934393
const EdgeInsets
4394-
.only(
4394+
.only(
43954395
bottom: 6),
43964396
child: TextField(
43974397
mouseCursor:
@@ -4480,7 +4480,7 @@ class _AppointmentEditorWebState extends State<AppointmentEditorWeb> {
44804480
child: Padding(
44814481
padding:
44824482
const EdgeInsets
4483-
.only(
4483+
.only(
44844484
left: 9),
44854485
child: TextField(
44864486
textAlignVertical:
@@ -4621,7 +4621,7 @@ class _AppointmentEditorWebState extends State<AppointmentEditorWeb> {
46214621
child: Container(
46224622
padding:
46234623
const EdgeInsets
4624-
.only(
4624+
.only(
46254625
left: 9),
46264626
child: TextField(
46274627
textAlignVertical:
@@ -4707,8 +4707,9 @@ class _AppointmentEditorWebState extends State<AppointmentEditorWeb> {
47074707
},
47084708
shape:
47094709
const CircleBorder(),
4710-
padding:
4711-
const EdgeInsets.all(10.0),
4710+
padding: const EdgeInsets
4711+
.all(
4712+
10.0),
47124713
child:
47134714
Icon(
47144715
Icons.date_range,

lib/samples/gauge/pointer_interaction/radial_slider.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
33

44
/// Gauge imports
55
import 'package:syncfusion_flutter_gauges/gauges.dart';
6+
import 'package:syncfusion_flutter_sliders/sliders.dart';
67

78
/// Local imports
89
import '../../../model/sample_view.dart';
@@ -99,7 +100,7 @@ class _RadialSliderExampleState extends SampleViewState {
99100
flex: model.isWebFullView ? 2 : 3,
100101
child: SizedBox(
101102
width: width,
102-
child: Slider(
103+
child: SfSlider(
103104
activeColor: const Color(0xFF02AAB0),
104105
inactiveColor: const Color(0xFF00CDAC),
105106
min: 5,
@@ -114,7 +115,7 @@ class _RadialSliderExampleState extends SampleViewState {
114115

115116
/// Dragged pointer new value is updated to pointer and
116117
/// annotation current value.
117-
void handlePointerValueChanged(double value) {
118+
void handlePointerValueChanged(dynamic value) {
118119
if (value.toInt() > 6) {
119120
setState(() {
120121
_currentValue = value.roundToDouble();

lib/samples/pdf/annotations.dart

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -25,49 +25,50 @@ class _AnnotationsPdfState extends SampleViewState {
2525
@override
2626
Widget build(BuildContext context) {
2727
return Scaffold(
28-
backgroundColor: model.cardThemeColor,
29-
body: Padding(
30-
padding: const EdgeInsets.fromLTRB(10, 10, 10, 10),
31-
child: Column(
32-
crossAxisAlignment: CrossAxisAlignment.start,
33-
children: <Widget>[
34-
Text(
35-
'This sample shows how to create annotations such as rectangle, ellipse, polygon, and line in a PDF document. ',
36-
style: TextStyle(fontSize: 16, color: model.textColor)),
37-
const SizedBox(height: 10, width: 30),
38-
Row(
28+
backgroundColor: model.cardThemeColor,
29+
body: SingleChildScrollView(
30+
child: Padding(
31+
padding: const EdgeInsets.fromLTRB(10, 10, 10, 10),
32+
child: Column(
33+
crossAxisAlignment: CrossAxisAlignment.start,
3934
children: <Widget>[
40-
Checkbox(
41-
value: flatten,
42-
activeColor: model.backgroundColor,
43-
onChanged: (bool? value) {
44-
setState(() {
45-
flatten = value!;
46-
});
47-
}),
48-
Text('Flatten Annotation',
35+
Text(
36+
'This sample shows how to create annotations such as rectangle, ellipse, polygon, and line in a PDF document. ',
4937
style: TextStyle(fontSize: 16, color: model.textColor)),
38+
const SizedBox(height: 10, width: 30),
39+
Row(
40+
children: <Widget>[
41+
Checkbox(
42+
value: flatten,
43+
activeColor: model.backgroundColor,
44+
onChanged: (bool? value) {
45+
setState(() {
46+
flatten = value!;
47+
});
48+
}),
49+
Text('Flatten Annotation',
50+
style: TextStyle(fontSize: 16, color: model.textColor)),
51+
],
52+
),
53+
const SizedBox(height: 10, width: 30),
54+
Align(
55+
child: TextButton(
56+
style: ButtonStyle(
57+
backgroundColor:
58+
MaterialStateProperty.all<Color>(model.backgroundColor),
59+
padding: model.isMobile
60+
? null
61+
: MaterialStateProperty.all(const EdgeInsets.symmetric(
62+
vertical: 15, horizontal: 15)),
63+
),
64+
onPressed: _generatePDF,
65+
child: const Text('Generate PDF',
66+
style: TextStyle(color: Colors.white)),
67+
))
5068
],
5169
),
52-
const SizedBox(height: 10, width: 30),
53-
Align(
54-
child: TextButton(
55-
style: ButtonStyle(
56-
backgroundColor:
57-
MaterialStateProperty.all<Color>(model.backgroundColor),
58-
padding: model.isMobile
59-
? null
60-
: MaterialStateProperty.all(const EdgeInsets.symmetric(
61-
vertical: 15, horizontal: 15)),
62-
),
63-
onPressed: _generatePDF,
64-
child: const Text('Generate PDF',
65-
style: TextStyle(color: Colors.white)),
66-
))
67-
],
68-
),
69-
),
70-
);
70+
),
71+
));
7172
}
7273

7374
Future<void> _generatePDF() async {

0 commit comments

Comments
 (0)