Skip to content

Commit 3cc2418

Browse files
committed
✨ 添加NestedScrollView、SliverOverlapAbsorber、SliverOverlapInjector组件
1 parent 46addef commit 3cc2418

7 files changed

Lines changed: 62 additions & 2 deletions

File tree

assets/flutter.db

12 KB
Binary file not shown.

lib/views/widgets/exp/sliver_unit.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ export '../Sliver/SliverOpacity/node1_base.dart';
1515
export '../Sliver/SliverPadding/node1_base.dart';
1616
export '../Sliver/SliverPersistentHeader/node1_base.dart';
1717
export '../Sliver/SliverToBoxAdapter/node1_base.dart';
18+
export '../Sliver/SliverOverlapAbsorber/node1_base.dart';
19+
export '../Sliver/SliverOverlapInjector/node1_base.dart';

lib/views/widgets/exp/stateful_unit.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export '../StatefulWidget/SlideTransition/node1_base.dart';
1111
export '../StatefulWidget/MonthPicker/node1_base.dart';
1212
export '../StatefulWidget/YearPicker/node1_base.dart';
1313
export '../StatefulWidget/WillPopScope/node1_base.dart';
14-
14+
export '../StatefulWidget/NestedScrollView/node1_base.dart';
1515
export '../StatefulWidget/AppBar/node1_base.dart';
1616
export '../StatefulWidget/AppBar/node2_tab.dart';
1717
export '../StatefulWidget/BottomAppBar/node1_base.dart';

lib/views/widgets/widgets_map.dart

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,18 @@ class WidgetsMap {
168168
ColorToggleButtons(),
169169
ProToggleButtons(),
170170
];
171-
171+
case "NestedScrollView":
172+
return [
173+
NestedScrollViewDemo(),
174+
];
175+
case "SliverOverlapAbsorber":
176+
return [
177+
SliverOverlapAbsorberDemo(),
178+
];
179+
case "SliverOverlapInjector":
180+
return [
181+
SliverOverlapInjectorDemo(),
182+
];
172183
case "Divider":
173184
return [
174185
CustomDivider(),
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//
2+
// Generated file. Do not edit.
3+
//
4+
5+
#include "generated_plugin_registrant.h"
6+
7+
8+
void RegisterPlugins(flutter::PluginRegistry* registry) {
9+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// Generated file. Do not edit.
3+
//
4+
5+
#ifndef GENERATED_PLUGIN_REGISTRANT_
6+
#define GENERATED_PLUGIN_REGISTRANT_
7+
8+
#include <flutter/plugin_registry.h>
9+
10+
// Registers Flutter plugins.
11+
void RegisterPlugins(flutter::PluginRegistry* registry);
12+
13+
#endif // GENERATED_PLUGIN_REGISTRANT_

linux/flutter/generated_plugins.mk

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Plugins to include in the build.
2+
GENERATED_PLUGINS=\
3+
4+
GENERATED_PLUGINS_DIR=flutter/ephemeral/.plugin_symlinks
5+
# A plugin library name plugin name with _plugin appended.
6+
GENERATED_PLUGIN_LIB_NAMES=$(foreach plugin,$(GENERATED_PLUGINS),$(plugin)_plugin)
7+
8+
# Variables for use in the enclosing Makefile. Changes to these names are
9+
# breaking changes.
10+
PLUGIN_TARGETS=$(GENERATED_PLUGINS)
11+
PLUGIN_LIBRARIES=$(foreach plugin,$(GENERATED_PLUGIN_LIB_NAMES),\
12+
$(OUT_DIR)/lib$(plugin).so)
13+
PLUGIN_LDFLAGS=$(patsubst %,-l%,$(GENERATED_PLUGIN_LIB_NAMES))
14+
PLUGIN_CPPFLAGS=$(foreach plugin,$(GENERATED_PLUGINS),\
15+
-I$(GENERATED_PLUGINS_DIR)/$(plugin)/linux)
16+
17+
# Targets
18+
19+
# Implicit rules don't match phony targets, so list plugin builds explicitly.
20+
21+
.PHONY: $(GENERATED_PLUGINS)
22+
$(GENERATED_PLUGINS):
23+
make -C $(GENERATED_PLUGINS_DIR)/$@/linux \
24+
OUT_DIR=$(OUT_DIR) \
25+
FLUTTER_EPHEMERAL_DIR="$(abspath flutter/ephemeral)"

0 commit comments

Comments
 (0)