基础组件库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 line
747 B

  1. import 'package:flutter/material.dart';
  2. import 'package:flutter/src/widgets/framework.dart';
  3. import 'package:zhiying_base_widget/widgets/search/input/search_input_widget.dart';
  4. import 'package:zhiying_comm/zhiying_comm.dart';
  5. import 'package:zhiying_comm/util/custom_sliver_persistent_header_delegate.dart';
  6. class SearchInputCreater extends WidgetCreater {
  7. @override
  8. List<Widget> createWidgets(Map<String, dynamic> model) {
  9. return [
  10. SliverPersistentHeader(
  11. delegate: CustomSliverPersistentHeaderDelegate(
  12. child: SearchInputWidget(model),
  13. min: 35,
  14. max: 35,
  15. ),
  16. pinned: true,
  17. floating: false,
  18. )
  19. ];
  20. }
  21. @override
  22. bool isSliverChild() {
  23. return true;
  24. }
  25. }