基础组件库
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

28 rindas
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. }