Skip to content

Commit e37eef3

Browse files
committed
IconValue renamed to IconData
1 parent ecc820f commit e37eef3

Some content is hidden

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

50 files changed

+326
-284
lines changed

.appveyor.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ for:
213213

214214
- cd client
215215
- set RELEASE_DIR=build\windows\x64\runner\Release
216-
- flutter build windows --build-name=%APPVEYOR_BUILD_VERSION%
216+
- flutter build windows --no-tree-shake-icons --build-name=%APPVEYOR_BUILD_VERSION%
217217

218218
- copy "%WINDIR%\system32\msvcp140.dll" %RELEASE_DIR%
219219
- copy "%WINDIR%\system32\vcruntime140.dll" %RELEASE_DIR%
@@ -277,7 +277,7 @@ for:
277277
build_script:
278278
# Flutter macOS client
279279
- pushd client
280-
- flutter build macos --build-name=$APPVEYOR_BUILD_VERSION
280+
- flutter build macos --no-tree-shake-icons --build-name=$APPVEYOR_BUILD_VERSION
281281
- tar -czvf flet-macos.tar.gz -C build/macos/Build/Products/Release Flet.app
282282
- mkdir -p $flet_sdk_root/packages/flet-desktop/src/flet_desktop/app
283283
- cp flet-macos.tar.gz $flet_sdk_root/packages/flet-desktop/src/flet_desktop/app
@@ -357,7 +357,7 @@ for:
357357
patch_flet_desktop_package_name "flet-desktop-light"
358358
artifact_suffix="-light"
359359
fi
360-
- flutter build linux --build-name=$APPVEYOR_BUILD_VERSION
360+
- flutter build linux --no-tree-shake-icons --build-name=$APPVEYOR_BUILD_VERSION
361361
- mv build/linux/$build_arch/release/bundle build/linux/$build_arch/release/flet
362362
- tar -czvf flet-linux$artifact_suffix-$ARCH.tar.gz -C build/linux/$build_arch/release flet
363363
- mkdir -p $flet_sdk_root/packages/flet-desktop/src/flet_desktop/app
@@ -412,7 +412,7 @@ for:
412412
build_script:
413413
# Flutter Web client
414414
- pushd client
415-
- flutter build web --wasm
415+
- flutter build web --wasm --no-tree-shake-icons
416416
- cp -R build/web $flet_sdk_root/packages/flet-web/src/flet_web
417417
# fix on mobile Safari: https://github.com/flutter/flutter/issues/145111#issuecomment-2714599139
418418
- ls "$(dirname "$(command -v flutter)")/cache/flutter_web_sdk/flutter_js"

client/lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'package:flet_audio/flet_audio.dart' as flet_audio;
66
import 'package:flet_audio_recorder/flet_audio_recorder.dart'
77
as flet_audio_recorder;
88
import 'package:flet_charts/flet_charts.dart' as flet_charts;
9-
import 'package:flet_datatable2/flet_datatable2.dart' as flet_datatable2;
9+
//import 'package:flet_datatable2/flet_datatable2.dart' as flet_datatable2;
1010
import "package:flet_flashlight/flet_flashlight.dart" as flet_flashlight;
1111
import 'package:flet_geolocator/flet_geolocator.dart' as flet_geolocator;
1212
import 'package:flet_lottie/flet_lottie.dart' as flet_lottie;
@@ -45,7 +45,7 @@ void main([List<String>? args]) async {
4545
flet_rive.Extension(),
4646
flet_webview.Extension(),
4747
flet_flashlight.Extension(),
48-
flet_datatable2.Extension(),
48+
//flet_datatable2.Extension(),
4949
flet_charts.Extension(),
5050
];
5151

client/pubspec.lock

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,6 @@ packages:
161161
url: "https://pub.dev"
162162
source: hosted
163163
version: "1.2.0"
164-
data_table_2:
165-
dependency: transitive
166-
description:
167-
name: data_table_2
168-
sha256: b8dd157e4efe5f2beef092c9952a254b2192cf76a26ad1c6aa8b06c8b9d665da
169-
url: "https://pub.dev"
170-
source: hosted
171-
version: "2.6.0"
172164
dbus:
173165
dependency: transitive
174166
description:
@@ -308,15 +300,6 @@ packages:
308300
url: "https://github.com/flet-dev/flet-charts.git"
309301
source: git
310302
version: "0.1.0"
311-
flet_datatable2:
312-
dependency: "direct main"
313-
description:
314-
path: "src/flutter/flet_datatable2"
315-
ref: v1
316-
resolved-ref: "98c2b38801ddc131e30d2082b4fc9271201384a8"
317-
url: "https://github.com/flet-dev/flet-datatable2.git"
318-
source: git
319-
version: "0.1.0"
320303
flet_flashlight:
321304
dependency: "direct main"
322305
description:

client/pubspec.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ dependencies:
9494
url: https://github.com/flet-dev/flet-flashlight.git
9595
ref: v1
9696
path: src/flutter/flet_flashlight
97-
flet_datatable2:
98-
git:
99-
url: https://github.com/flet-dev/flet-datatable2.git
100-
ref: v1
101-
path: src/flutter/flet_datatable2
97+
# flet_datatable2:
98+
# git:
99+
# url: https://github.com/flet-dev/flet-datatable2.git
100+
# ref: v1
101+
# path: src/flutter/flet_datatable2
102102

103103
flet_charts:
104104
git:

packages/flet/lib/src/controls/cupertino_context_menu_action.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CupertinoContextMenuActionControl extends StatelessWidget {
2828
Navigator.of(context).pop(); // Close the context menu
2929
}
3030
},
31-
trailingIcon: control.getIcon("trailing_icon"),
31+
trailingIcon: control.getIconData("trailing_icon"),
3232
child: content);
3333
}
3434
}

packages/flet/lib/src/controls/cupertino_navigation_bar.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class _CupertinoNavigationBarControlState
5555
return BottomNavigationBarItem(
5656
tooltip: !dest.disabled ? dest.getString("tooltip") : null,
5757
backgroundColor: dest.getColor("bgcolor", context),
58-
icon: dest.buildWidget("icon") ?? Icon(dest.getIcon("icon")),
58+
icon: dest.buildWidget("icon") ?? Icon(dest.getIconData("icon")),
5959
activeIcon: dest.buildIconOrWidget("selected_icon"),
6060
label: dest.getString("label", "")!);
6161
}).toList());

packages/flet/lib/src/controls/date_picker.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ class _DatePickerControlState extends State<DatePickerControl> {
2828
var value = widget.control.getDateTime("value");
2929
var currentDate = widget.control.getDateTime("current_date");
3030
var switchToCalendarEntryModeIcon =
31-
widget.control.getIcon("switch_to_calendar_icon");
31+
widget.control.getIconData("switch_to_calendar_icon");
3232
var switchToInputEntryModeIcon =
33-
widget.control.getIcon("switch_to_input_icon");
33+
widget.control.getIconData("switch_to_input_icon");
3434

3535
void onClosed(DateTime? dateValue) {
3636
widget.control.updateProperties({"_open": false}, python: false);

packages/flet/lib/src/controls/icon.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class IconControl extends StatelessWidget {
2020
return ConstrainedControl(
2121
control: control,
2222
child: Icon(
23-
control.getIcon("name"),
23+
control.getIconData("name"),
2424
size: control.getDouble("size"),
2525
color: control.getColor("color", context),
2626
blendMode: control.getBlendMode("blend_mode"),

packages/flet/lib/src/controls/icon_button.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class _IconButtonControlState extends State<IconButtonControl>
127127
iconWidget = ControlWidget(control: icon);
128128
} else if (icon is String) {
129129
iconWidget = Icon(
130-
widget.control.getIcon("icon"),
130+
widget.control.getIconData("icon"),
131131
color: iconColor,
132132
);
133133
} else if (content != null) {
@@ -140,7 +140,7 @@ class _IconButtonControlState extends State<IconButtonControl>
140140
selectedIconWidget = ControlWidget(control: selectedIcon);
141141
} else if (selectedIcon is String) {
142142
selectedIconWidget = Icon(
143-
widget.control.getIcon("selected_icon"),
143+
widget.control.getIconData("selected_icon"),
144144
color: selectedIconColor,
145145
);
146146
}

packages/flet/lib/src/controls/navigation_bar_destination.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ class NavigationBarDestinationControl extends StatelessWidget {
1515
Widget build(BuildContext context) {
1616
debugPrint("NavigationBarDestination build: ${control.id}");
1717

18-
var selectedIcon = control.getIcon("selected_icon");
18+
var selectedIcon = control.getIconData("selected_icon");
1919
var child = NavigationDestination(
2020
enabled: !control.disabled,
2121
tooltip: !control.disabled ? control.getString("tooltip") : null,
22-
icon: control.buildWidget("icon") ?? Icon(control.getIcon("icon")),
22+
icon: control.buildWidget("icon") ?? Icon(control.getIconData("icon")),
2323
selectedIcon: control.buildWidget("selected_icon") ??
2424
(selectedIcon != null ? Icon(selectedIcon) : null),
2525
label: control.getString("label", "")!);

0 commit comments

Comments
 (0)