添加NestedScrollView、SliverOverlapAbsorber、SliverOverlapInjector组件

This commit is contained in:
toly
2020-06-16 10:16:44 +08:00
parent 46addefab3
commit 3cc2418b39
7 changed files with 62 additions and 2 deletions

Binary file not shown.

View File

@@ -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';

View File

@@ -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';

View File

@@ -168,7 +168,18 @@ class WidgetsMap {
ColorToggleButtons(),
ProToggleButtons(),
];
case "NestedScrollView":
return [
NestedScrollViewDemo(),
];
case "SliverOverlapAbsorber":
return [
SliverOverlapAbsorberDemo(),
];
case "SliverOverlapInjector":
return [
SliverOverlapInjectorDemo(),
];
case "Divider":
return [
CustomDivider(),

View File

@@ -0,0 +1,9 @@
//
// Generated file. Do not edit.
//
#include "generated_plugin_registrant.h"
void RegisterPlugins(flutter::PluginRegistry* registry) {
}

View 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_

View 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)"