mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-26 23:13:27 +08:00
package/flutter-packages/flutter-animations-example: new package
This package provides examples of the following animations: - OpenContainer - SharedAxisTransition - FadeThroughTransisiton - FadeScaleTransition The package also provides a toggle that slows all the animations. Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com> Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
parent
88a300753a
commit
a3239d1825
@ -35,6 +35,7 @@ F: package/flutter-engine/
|
||||
F: package/flutter-gallery/
|
||||
F: package/flutter-packages/
|
||||
F: package/flutter-packages/flutter-adaptive-scaffold-example/
|
||||
F: package/flutter-packages/flutter-animations-example/
|
||||
F: package/flutter-packages/flutter-markdown-example/
|
||||
F: package/flutter-pi/
|
||||
F: package/flutter-sdk-bin/
|
||||
|
@ -8,6 +8,7 @@ menuconfig BR2_PACKAGE_FLUTTER_PACKAGES
|
||||
|
||||
if BR2_PACKAGE_FLUTTER_PACKAGES
|
||||
source "package/flutter-packages/flutter-adaptive-scaffold-example/Config.in"
|
||||
source "package/flutter-packages/flutter-animations-example/Config.in"
|
||||
source "package/flutter-packages/flutter-markdown-example/Config.in"
|
||||
endif
|
||||
|
||||
|
@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_FLUTTER_ANIMATIONS_EXAMPLE
|
||||
bool "flutter animations example"
|
||||
help
|
||||
High quality pre-built Animations for Flutter
|
||||
|
||||
https://github.com/flutter/packages/tree/main/packages/animations/example
|
@ -0,0 +1 @@
|
||||
../flutter-packages.hash
|
@ -0,0 +1,54 @@
|
||||
################################################################################
|
||||
#
|
||||
# flutter-animations-example
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FLUTTER_ANIMATIONS_EXAMPLE_VERSION = $(FLUTTER_PACKAGES_VERSION)
|
||||
FLUTTER_ANIMATIONS_EXAMPLE_SITE = $(FLUTTER_PACKAGES_SITE)
|
||||
FLUTTER_ANIMATIONS_EXAMPLE_SITE_METHOD = $(FLUTTER_PACKAGES_SITE_METHOD)
|
||||
FLUTTER_ANIMATIONS_EXAMPLE_SOURCE = $(FLUTTER_PACKAGES_SOURCE)
|
||||
FLUTTER_ANIMATIONS_EXAMPLE_LICENSE = $(FLUTTER_PACKAGES_LICENSE)
|
||||
FLUTTER_ANIMATIONS_EXAMPLE_LICENSE_FILES = $(FLUTTER_PACKAGES_LICENSE_FILES)
|
||||
FLUTTER_ANIMATIONS_EXAMPLE_DL_SUBDIR = $(FLUTTER_PACKAGES_DL_SUBDIR)
|
||||
FLUTTER_ANIMATIONS_EXAMPLE_DEPENDENCIES = $(FLUTTER_PACKAGES_DEPENDENCIES)
|
||||
FLUTTER_ANIMATIONS_EXAMPLE_PKG_NAME = animations_example
|
||||
FLUTTER_ANIMATIONS_EXAMPLE_INSTALL_DIR = $(TARGET_DIR)/usr/share/flutter/$(FLUTTER_ANIMATIONS_EXAMPLE_PKG_NAME)/$(FLUTTER_ENGINE_RUNTIME_MODE)
|
||||
FLUTTER_ANIMATIONS_EXAMPLE_SUBDIR = packages/animations/example
|
||||
|
||||
define FLUTTER_ANIMATIONS_EXAMPLE_CONFIGURE_CMDS
|
||||
cd $(FLUTTER_ANIMATIONS_EXAMPLE_BUILDDIR) && \
|
||||
$(HOST_FLUTTER_SDK_BIN_FLUTTER) clean && \
|
||||
$(HOST_FLUTTER_SDK_BIN_FLUTTER) pub get && \
|
||||
$(HOST_FLUTTER_SDK_BIN_FLUTTER) build bundle
|
||||
endef
|
||||
|
||||
define FLUTTER_ANIMATIONS_EXAMPLE_BUILD_CMDS
|
||||
cd $(FLUTTER_ANIMATIONS_EXAMPLE_BUILDDIR) && \
|
||||
$(HOST_FLUTTER_SDK_BIN_DART_BIN) \
|
||||
--native-assets $(FLUTTER_ANIMATIONS_EXAMPLE_BUILDDIR)/.dart_tool/flutter_build/*/native_assets.yaml \
|
||||
package:$(FLUTTER_ANIMATIONS_EXAMPLE_PKG_NAME)/main.dart && \
|
||||
$(HOST_FLUTTER_SDK_BIN_ENV) $(FLUTTER_ENGINE_GEN_SNAPSHOT) \
|
||||
--deterministic \
|
||||
--obfuscate \
|
||||
--snapshot_kind=app-aot-elf \
|
||||
--elf=libapp.so \
|
||||
.dart_tool/flutter_build/*/app.dill
|
||||
endef
|
||||
|
||||
define FLUTTER_ANIMATIONS_EXAMPLE_INSTALL_TARGET_CMDS
|
||||
mkdir -p $(FLUTTER_ANIMATIONS_EXAMPLE_INSTALL_DIR)/{data,lib}
|
||||
cp -dprf $(FLUTTER_ANIMATIONS_EXAMPLE_BUILDDIR)/build/flutter_assets $(FLUTTER_ANIMATIONS_EXAMPLE_INSTALL_DIR)/data/
|
||||
|
||||
$(INSTALL) -D -m 0755 $(FLUTTER_ANIMATIONS_EXAMPLE_BUILDDIR)/libapp.so \
|
||||
$(FLUTTER_ANIMATIONS_EXAMPLE_INSTALL_DIR)/lib/libapp.so
|
||||
|
||||
ln -sf /usr/share/flutter/$(FLUTTER_ENGINE_RUNTIME_MODE)/data/icudtl.dat \
|
||||
$(FLUTTER_ANIMATIONS_EXAMPLE_INSTALL_DIR)/data/
|
||||
|
||||
ln -sf /usr/lib/libflutter_engine.so $(FLUTTER_ANIMATIONS_EXAMPLE_INSTALL_DIR)/lib/
|
||||
$(RM) $(FLUTTER_ANIMATIONS_EXAMPLE_INSTALL_DIR)/data/flutter_assets/kernel_blob.bin
|
||||
touch $(FLUTTER_ANIMATIONS_EXAMPLE_INSTALL_DIR)/data/flutter_assets/kernel_blob.bin
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
Loading…
Reference in New Issue
Block a user