From d9e22dc3218e13f2edaec4a7001d1ee8e154a867 Mon Sep 17 00:00:00 2001 From: Shawn Date: Tue, 29 Nov 2022 22:38:55 -0700 Subject: [PATCH] Switch line endings --- .../collection/widgets/_collection_list.dart | 25 +++++++++++-------- .../ephemeral/.plugin_symlinks/desktop_window | 1 + .../.plugin_symlinks/package_info_plus_linux | 1 + .../.plugin_symlinks/path_provider_linux | 1 + .../.plugin_symlinks/share_plus_linux | 1 + .../.plugin_symlinks/shared_preferences_linux | 1 + .../.plugin_symlinks/url_launcher_linux | 1 + linux/flutter/generated_plugin_registrant.cc | 19 ++++++++++++++ linux/flutter/generated_plugin_registrant.h | 15 +++++++++++ linux/flutter/generated_plugins.cmake | 25 +++++++++++++++++++ 10 files changed, 79 insertions(+), 11 deletions(-) create mode 120000 linux/flutter/ephemeral/.plugin_symlinks/desktop_window create mode 120000 linux/flutter/ephemeral/.plugin_symlinks/package_info_plus_linux create mode 120000 linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux create mode 120000 linux/flutter/ephemeral/.plugin_symlinks/share_plus_linux create mode 120000 linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux create mode 120000 linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux create mode 100644 linux/flutter/generated_plugin_registrant.cc create mode 100644 linux/flutter/generated_plugin_registrant.h create mode 100644 linux/flutter/generated_plugins.cmake diff --git a/lib/ui/screens/collection/widgets/_collection_list.dart b/lib/ui/screens/collection/widgets/_collection_list.dart index 7e4d5ef2..1283dccf 100644 --- a/lib/ui/screens/collection/widgets/_collection_list.dart +++ b/lib/ui/screens/collection/widgets/_collection_list.dart @@ -50,20 +50,23 @@ class _CollectionList extends StatelessWidget with GetItMixin { direction: vtMode ? Axis.vertical : Axis.horizontal, mainAxisSize: MainAxisSize.min, separatorBuilder: () => Gap($styles.insets.lg), - children: collections, + children: [ + ...collections, + Gap($styles.insets.sm), + _buildResetBtn(context), + ], ), ), ); } - // TODO: Restore reset functionality somehow - // Widget _buildResetBtn(BuildContext context) { - // Widget btn = AppBtn.from( - // onPressed: onReset ?? () {}, - // text: $strings.collectionButtonReset, - // isSecondary: true, - // expand: true, - // ); - // return AnimatedOpacity(opacity: onReset == null ? 0.25 : 1, duration: $styles.times.fast, child: btn); - // } + Widget _buildResetBtn(BuildContext context) { + Widget btn = AppBtn.from( + onPressed: onReset ?? () {}, + text: $strings.collectionButtonReset, + isSecondary: true, + expand: true, + ); + return AnimatedOpacity(opacity: onReset == null ? 0.25 : 1, duration: $styles.times.fast, child: btn); + } } diff --git a/linux/flutter/ephemeral/.plugin_symlinks/desktop_window b/linux/flutter/ephemeral/.plugin_symlinks/desktop_window new file mode 120000 index 00000000..1df61b4f --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/desktop_window @@ -0,0 +1 @@ +C:/Users/Shawn/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/desktop_window-0.4.0/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/package_info_plus_linux b/linux/flutter/ephemeral/.plugin_symlinks/package_info_plus_linux new file mode 120000 index 00000000..5975ecf4 --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/package_info_plus_linux @@ -0,0 +1 @@ +C:/Users/Shawn/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/package_info_plus_linux-1.0.5/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux b/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux new file mode 120000 index 00000000..756288f1 --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux @@ -0,0 +1 @@ +C:/Users/Shawn/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/path_provider_linux-2.1.7/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/share_plus_linux b/linux/flutter/ephemeral/.plugin_symlinks/share_plus_linux new file mode 120000 index 00000000..24d8faa2 --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/share_plus_linux @@ -0,0 +1 @@ +C:/Users/Shawn/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/share_plus_linux-3.0.0/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux b/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux new file mode 120000 index 00000000..45340fa3 --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/shared_preferences_linux @@ -0,0 +1 @@ +C:/Users/Shawn/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/shared_preferences_linux-2.1.1/ \ No newline at end of file diff --git a/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux b/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux new file mode 120000 index 00000000..810237cf --- /dev/null +++ b/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux @@ -0,0 +1 @@ +C:/Users/Shawn/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/url_launcher_linux-3.0.1/ \ No newline at end of file diff --git a/linux/flutter/generated_plugin_registrant.cc b/linux/flutter/generated_plugin_registrant.cc new file mode 100644 index 00000000..ae5025a8 --- /dev/null +++ b/linux/flutter/generated_plugin_registrant.cc @@ -0,0 +1,19 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#include "generated_plugin_registrant.h" + +#include +#include + +void fl_register_plugins(FlPluginRegistry* registry) { + g_autoptr(FlPluginRegistrar) desktop_window_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "DesktopWindowPlugin"); + desktop_window_plugin_register_with_registrar(desktop_window_registrar); + g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); + url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); +} diff --git a/linux/flutter/generated_plugin_registrant.h b/linux/flutter/generated_plugin_registrant.h new file mode 100644 index 00000000..e0f0a47b --- /dev/null +++ b/linux/flutter/generated_plugin_registrant.h @@ -0,0 +1,15 @@ +// +// Generated file. Do not edit. +// + +// clang-format off + +#ifndef GENERATED_PLUGIN_REGISTRANT_ +#define GENERATED_PLUGIN_REGISTRANT_ + +#include + +// Registers Flutter plugins. +void fl_register_plugins(FlPluginRegistry* registry); + +#endif // GENERATED_PLUGIN_REGISTRANT_ diff --git a/linux/flutter/generated_plugins.cmake b/linux/flutter/generated_plugins.cmake new file mode 100644 index 00000000..93a95322 --- /dev/null +++ b/linux/flutter/generated_plugins.cmake @@ -0,0 +1,25 @@ +# +# Generated file, do not edit. +# + +list(APPEND FLUTTER_PLUGIN_LIST + desktop_window + url_launcher_linux +) + +list(APPEND FLUTTER_FFI_PLUGIN_LIST +) + +set(PLUGIN_BUNDLED_LIBRARIES) + +foreach(plugin ${FLUTTER_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin}) + target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin) + list(APPEND PLUGIN_BUNDLED_LIBRARIES $) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries}) +endforeach(plugin) + +foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST}) + add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin}) + list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries}) +endforeach(ffi_plugin)