Skip to content

Commit

Permalink
✨ 添加NestedScrollView、SliverOverlapAbsorber、SliverOverlapInjector组件
Browse files Browse the repository at this point in the history
  • Loading branch information
toly1994328 committed Jun 16, 2020
1 parent 46addef commit 3cc2418
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 2 deletions.
Binary file modified assets/flutter.db
Binary file not shown.
2 changes: 2 additions & 0 deletions lib/views/widgets/exp/sliver_unit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
2 changes: 1 addition & 1 deletion lib/views/widgets/exp/stateful_unit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
13 changes: 12 additions & 1 deletion lib/views/widgets/widgets_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,18 @@ class WidgetsMap {
ColorToggleButtons(),
ProToggleButtons(),
];

case "NestedScrollView":
return [
NestedScrollViewDemo(),
];
case "SliverOverlapAbsorber":
return [
SliverOverlapAbsorberDemo(),
];
case "SliverOverlapInjector":
return [
SliverOverlapInjectorDemo(),
];
case "Divider":
return [
CustomDivider(),
Expand Down
9 changes: 9 additions & 0 deletions linux/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//
// Generated file. Do not edit.
//

#include "generated_plugin_registrant.h"


void RegisterPlugins(flutter::PluginRegistry* registry) {
}
13 changes: 13 additions & 0 deletions linux/flutter/generated_plugin_registrant.h
Original file line number Diff line number Diff line change
@@ -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 changes: 25 additions & 0 deletions linux/flutter/generated_plugins.mk
Original file line number Diff line number Diff line change
@@ -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)"

0 comments on commit 3cc2418

Please sign in to comment.