forked from lxm_flutter/FlutterUnit
✨ 添加NestedScrollView、SliverOverlapAbsorber、SliverOverlapInjector组件
This commit is contained in:
Binary file not shown.
@@ -15,3 +15,5 @@ export '../Sliver/SliverOpacity/node1_base.dart';
|
||||
export '../Sliver/SliverPadding/node1_base.dart';
|
||||
export '../Sliver/SliverPersistentHeader/node1_base.dart';
|
||||
export '../Sliver/SliverToBoxAdapter/node1_base.dart';
|
||||
export '../Sliver/SliverOverlapAbsorber/node1_base.dart';
|
||||
export '../Sliver/SliverOverlapInjector/node1_base.dart';
|
||||
|
||||
@@ -11,7 +11,7 @@ export '../StatefulWidget/SlideTransition/node1_base.dart';
|
||||
export '../StatefulWidget/MonthPicker/node1_base.dart';
|
||||
export '../StatefulWidget/YearPicker/node1_base.dart';
|
||||
export '../StatefulWidget/WillPopScope/node1_base.dart';
|
||||
|
||||
export '../StatefulWidget/NestedScrollView/node1_base.dart';
|
||||
export '../StatefulWidget/AppBar/node1_base.dart';
|
||||
export '../StatefulWidget/AppBar/node2_tab.dart';
|
||||
export '../StatefulWidget/BottomAppBar/node1_base.dart';
|
||||
|
||||
@@ -168,7 +168,18 @@ class WidgetsMap {
|
||||
ColorToggleButtons(),
|
||||
ProToggleButtons(),
|
||||
];
|
||||
|
||||
case "NestedScrollView":
|
||||
return [
|
||||
NestedScrollViewDemo(),
|
||||
];
|
||||
case "SliverOverlapAbsorber":
|
||||
return [
|
||||
SliverOverlapAbsorberDemo(),
|
||||
];
|
||||
case "SliverOverlapInjector":
|
||||
return [
|
||||
SliverOverlapInjectorDemo(),
|
||||
];
|
||||
case "Divider":
|
||||
return [
|
||||
CustomDivider(),
|
||||
|
||||
9
linux/flutter/generated_plugin_registrant.cc
Normal file
9
linux/flutter/generated_plugin_registrant.cc
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// Generated file. Do not edit.
|
||||
//
|
||||
|
||||
#include "generated_plugin_registrant.h"
|
||||
|
||||
|
||||
void RegisterPlugins(flutter::PluginRegistry* registry) {
|
||||
}
|
||||
13
linux/flutter/generated_plugin_registrant.h
Normal file
13
linux/flutter/generated_plugin_registrant.h
Normal file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// Generated file. Do not edit.
|
||||
//
|
||||
|
||||
#ifndef GENERATED_PLUGIN_REGISTRANT_
|
||||
#define GENERATED_PLUGIN_REGISTRANT_
|
||||
|
||||
#include <flutter/plugin_registry.h>
|
||||
|
||||
// Registers Flutter plugins.
|
||||
void RegisterPlugins(flutter::PluginRegistry* registry);
|
||||
|
||||
#endif // GENERATED_PLUGIN_REGISTRANT_
|
||||
25
linux/flutter/generated_plugins.mk
Normal file
25
linux/flutter/generated_plugins.mk
Normal file
@@ -0,0 +1,25 @@
|
||||
# Plugins to include in the build.
|
||||
GENERATED_PLUGINS=\
|
||||
|
||||
GENERATED_PLUGINS_DIR=flutter/ephemeral/.plugin_symlinks
|
||||
# A plugin library name plugin name with _plugin appended.
|
||||
GENERATED_PLUGIN_LIB_NAMES=$(foreach plugin,$(GENERATED_PLUGINS),$(plugin)_plugin)
|
||||
|
||||
# Variables for use in the enclosing Makefile. Changes to these names are
|
||||
# breaking changes.
|
||||
PLUGIN_TARGETS=$(GENERATED_PLUGINS)
|
||||
PLUGIN_LIBRARIES=$(foreach plugin,$(GENERATED_PLUGIN_LIB_NAMES),\
|
||||
$(OUT_DIR)/lib$(plugin).so)
|
||||
PLUGIN_LDFLAGS=$(patsubst %,-l%,$(GENERATED_PLUGIN_LIB_NAMES))
|
||||
PLUGIN_CPPFLAGS=$(foreach plugin,$(GENERATED_PLUGINS),\
|
||||
-I$(GENERATED_PLUGINS_DIR)/$(plugin)/linux)
|
||||
|
||||
# Targets
|
||||
|
||||
# Implicit rules don't match phony targets, so list plugin builds explicitly.
|
||||
|
||||
.PHONY: $(GENERATED_PLUGINS)
|
||||
$(GENERATED_PLUGINS):
|
||||
make -C $(GENERATED_PLUGINS_DIR)/$@/linux \
|
||||
OUT_DIR=$(OUT_DIR) \
|
||||
FLUTTER_EPHEMERAL_DIR="$(abspath flutter/ephemeral)"
|
||||
Reference in New Issue
Block a user