Skip to content

Commit e47a62d

Browse files
Updated latest sample browser source.
1 parent 2582920 commit e47a62d

File tree

10 files changed

+103
-12
lines changed

10 files changed

+103
-12
lines changed

images/flutter_examples.png

107 KB
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
# This is a generated file; do not edit or check into version control.
3+
export "FLUTTER_ROOT=D:\flutter SDK 2.0\flutter"
4+
export "FLUTTER_APPLICATION_PATH=D:\rp19\SB release 19.1\flutter-samplebrowser\flutter_examples\flutter_examples"
5+
export "FLUTTER_TARGET=lib\main.dart"
6+
export "FLUTTER_BUILD_DIR=build"
7+
export "SYMROOT=${SOURCE_ROOT}/../build\ios"
8+
export "FLUTTER_BUILD_NAME=18.4.30"
9+
export "FLUTTER_BUILD_NUMBER=18.4.30"
10+
export "DART_OBFUSCATION=false"
11+
export "TRACK_WIDGET_CREATION=false"
12+
export "TREE_SHAKE_ICONS=false"
13+
export "PACKAGE_CONFIG=.packages"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//
2+
// Generated file. Do not edit.
3+
//
4+
5+
#import "GeneratedPluginRegistrant.h"
6+
7+
#if __has_include(<path_provider/FLTPathProviderPlugin.h>)
8+
#import <path_provider/FLTPathProviderPlugin.h>
9+
#else
10+
@import path_provider;
11+
#endif
12+
13+
#if __has_include(<syncfusion_flutter_pdfviewer/SyncfusionFlutterPdfViewerPlugin.h>)
14+
#import <syncfusion_flutter_pdfviewer/SyncfusionFlutterPdfViewerPlugin.h>
15+
#else
16+
@import syncfusion_flutter_pdfviewer;
17+
#endif
18+
19+
#if __has_include(<url_launcher/FLTURLLauncherPlugin.h>)
20+
#import <url_launcher/FLTURLLauncherPlugin.h>
21+
#else
22+
@import url_launcher;
23+
#endif
24+
25+
@implementation GeneratedPluginRegistrant
26+
27+
+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry {
28+
[FLTPathProviderPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTPathProviderPlugin"]];
29+
[SyncfusionFlutterPdfViewerPlugin registerWithRegistrar:[registry registrarForPlugin:@"SyncfusionFlutterPdfViewerPlugin"]];
30+
[FLTURLLauncherPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTURLLauncherPlugin"]];
31+
}
32+
33+
@end

lib/model/mobile_view.dart

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// Package imports
22
import 'package:flutter/material.dart';
3+
import 'package:flutter/scheduler.dart';
34
import 'package:url_launcher/url_launcher.dart';
45

56
/// Local imports
@@ -35,6 +36,7 @@ class _LayoutPageState extends State<LayoutPage> {
3536
void initState() {
3637
_model = widget.sampleModel!;
3738
_category = widget.category!;
39+
isInitState = true;
3840
super.initState();
3941
}
4042

@@ -44,6 +46,11 @@ class _LayoutPageState extends State<LayoutPage> {
4446

4547
@override
4648
Widget build(BuildContext context) {
49+
if (isInitState) {
50+
SchedulerBinding.instance?.addPostFrameCallback((_) {
51+
isInitState = false;
52+
});
53+
}
4754
_showIcon = _category
4855
.controlList![_category.selectedIndex!].subItems[0].type ==
4956
'sample' ||
@@ -179,7 +186,8 @@ class _LayoutPageState extends State<LayoutPage> {
179186
.controlList![_category.selectedIndex!]
180187
.childList[_primaryTabIndex]
181188
.displayType !=
182-
'card'))
189+
'card') ||
190+
isInitState)
183191
? <Widget>[
184192
StatefulBuilder(builder: (BuildContext buildContext,
185193
StateSetter setState) {

lib/sample_details.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@
12461246
"key": "pagination",
12471247
"status": "New",
12481248
"description": "This sample shows how to view the next set of data on swiping the chart using the 'onPlotAreaSwipe' callback function. You can swipe from left to right or vice versa and also click on the days at the bottom to view the next set of data.",
1249-
"codeLink": "https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/chart/cartesian_charts/on_demand_loading/pagination.dart"
1249+
"codeLink": "https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/chart/cartesian_charts/user_interactions/pagination.dart"
12501250
}
12511251
]
12521252
},
@@ -1511,7 +1511,7 @@
15111511
"key": "pie_point_render_mode",
15121512
"status": "new",
15131513
"description":"This sample demonstrates how to fill the pie slices with various images for each slice using the 'ImageShader'.",
1514-
"codeLink": "https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/chart/circular_charts/chart_types/pie/pie_with_image.dart",
1514+
"codeLink": "https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/chart/circular_charts/chart_types/pie/point_render_mode.dart",
15151515
"needsPropertyPanel": true
15161516
}
15171517
]
@@ -1973,14 +1973,14 @@
19731973
"type": "sample",
19741974
"title": "Height calculator",
19751975
"key": "height_calculator",
1976-
"codeLink": "https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/linear_gauge/showcase/heightCalculator.dart",
1976+
"codeLink": "https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/linear_gauge/showcase/height_calculator.dart",
19771977
"description": ""
19781978
},
19791979
{
19801980
"type": "sample",
19811981
"title": "Water level indicator",
19821982
"key": "water_indicator",
1983-
"codeLink": "https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/linear_gauge/showcase/waterIndicator.dart",
1983+
"codeLink": "https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/linear_gauge/showcase/water_indicator.dart",
19841984
"description": ""
19851985
},
19861986
{
@@ -2022,7 +2022,7 @@
20222022
"type": "sample",
20232023
"title": "Temperature meter",
20242024
"key": "heat_meter",
2025-
"codeLink": "https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/linear_gauge/showcase/heat_mter.dart",
2025+
"codeLink": "https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/linear_gauge/showcase/heat_meter.dart",
20262026
"description": ""
20272027
},
20282028
{
@@ -3179,7 +3179,7 @@
31793179
"type": "sample",
31803180
"title": "Divisors, labels, and ticks",
31813181
"key": "vertical_range_slider_divisor_label_tick",
3182-
"codeLink": "https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/sliders/vertical_range_slider/default_appearance/vertical_range_slider_divisor_label_ticks.dart",
3182+
"codeLink": "https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/sliders/vertical_range_slider/default_appearance/vertical_range_slider_divisor_label_tick.dart",
31833183
"description": ""
31843184
},
31853185
{
@@ -3222,7 +3222,7 @@
32223222
"type": "sample",
32233223
"title": "Thumb icon customization",
32243224
"key": "vertical_range_slider_thumb_icon_customization",
3225-
"codeLink": "https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/sliders/vertica_range_slider/customization/thumb_customization/vertical_range_slider_thumb_icon_customization.dart"
3225+
"codeLink": "https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/sliders/vertical_range_slider/customization/thumb_customization/vertical_range_slider_thumb_icon_customization.dart"
32263226
},
32273227
{
32283228
"type": "sample",
@@ -3320,7 +3320,7 @@
33203320
"type": "sample",
33213321
"title": "Angles",
33223322
"key": "radial_slider_angles",
3323-
"codeLink": "https://github.com/syncfusion/flutter-examples/tree/master/lib/samples/radial_slider/basic_features.dart",
3323+
"codeLink": "https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/radial_slider/basic_features/angles.dart",
33243324
"description": ""
33253325
}
33263326
]

linux/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
cmake_minimum_required(VERSION 3.10)
22
project(runner LANGUAGES CXX)
33

4-
set(BINARY_NAME "flutter_examples")
5-
set(APPLICATION_ID "com.syncfusion.flutter_examples")
4+
set(BINARY_NAME "syncfusion-flutter-gallery")
5+
set(APPLICATION_ID "com.syncfusion.flutter.examples")
66

77
cmake_policy(SET CMP0063 NEW)
88

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[Desktop Entry]
2+
Name=Syncfusion Flutter Gallery
3+
Comment=Demos & examples of Syncfusion Flutter widgets.
4+
Exec=syncfusion-flutter-gallery
5+
Icon=${SNAP}/meta/gui/syncfusion-flutter-gallery.png
6+
Terminal=false
7+
Type=Application
8+
Categories=Productivity;
54.2 KB
Loading

snap/snapcraft.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: syncfusion-flutter-gallery
2+
version: 19.1.54
3+
summary: Syncfusion Flutter Demos
4+
description: Essential UI Widgets for Flutter is a set of ever-growing UI widgets package for developing rich and high-quality applications in iOS, Android, Web, Windows, macOS and Linux from a single code base, using Flutter framework.
5+
6+
confinement: strict
7+
base: core18
8+
grade: stable
9+
10+
slots:
11+
dbus-syncfusion-flutter-gallery:
12+
interface: dbus
13+
bus: session
14+
name: com.syncfusion.flutter.examples
15+
16+
apps:
17+
syncfusion-flutter-gallery:
18+
command: syncfusion-flutter-gallery
19+
extensions: [flutter-dev]
20+
plugs:
21+
- network
22+
- desktop
23+
slots:
24+
- dbus-syncfusion-flutter-gallery
25+
parts:
26+
syncfusion-flutter-gallery:
27+
source: .
28+
plugin: flutter
29+
flutter-target: lib/main.dart

windows/runner/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
4848
FlutterWindow window(&run_loop, project);
4949
Win32Window::Point origin(10, 10);
5050
Win32Window::Size size(1280, 720);
51-
if (!window.CreateAndShow(L"flutter_examples", origin, size)) {
51+
if (!window.CreateAndShow(L"Demos & Examples of Syncfusion Flutter Widgets", origin, size)) {
5252
return EXIT_FAILURE;
5353
}
5454
window.SetQuitOnClose(true);

0 commit comments

Comments
 (0)