flutter_widget_from_html icon indicating copy to clipboard operation
flutter_widget_from_html copied to clipboard

Use the NestedScrollView component to wrap the HtmlWidget, and the body has pull-up loading and pull-down refresh, which will cause pull obstacles

Open 2530442368 opened this issue 3 years ago • 1 comments

error video: https://user-images.githubusercontent.com/63909463/168304216-533834b4-5c50-4c3d-a9d3-b0379688dd7b.mp4

error code
Pull-up refresh pull-down loading plugin: https://github.com/xuelongqy/flutter_easyrefresh

NestedScrollView(headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled){ return <Widget>[ SliverAppBar( pinned: true, centerTitle: true, elevation: 0.5, // leading: BackButton(color: Color(0xFF1A1A1A)), toolbarHeight:44, backgroundColor: Theme.of(context).scaffoldBackgroundColor, iconTheme: IconThemeData( color: Colors.yellow ), title: Text( "测试正文", style: TextThemeStyle.of(context) .fontBold16! .copyWith( color: ColorTheme.of(context) .colorBottom), )), SliverToBoxAdapter( child: HtmlWidget( '''

Heading

A paragraph with strong, emphasized and colored text.

Heading

A paragraph with strong, emphasized and colored text.

Heading

A paragraph with strong, emphasized and colored text.

Heading

A paragraph with strong, emphasized and colored text.

Heading

A paragraph with strong, emphasized and colored text.

Heading

A paragraph with strong, emphasized and colored text.

Heading

A paragraph with strong, emphasized and colored text.

Heading

A paragraph with strong, emphasized and colored text.

Heading

A paragraph with strong, emphasized and colored text.

Heading

A paragraph with strong, emphasized and colored text.

''',) )
  ];
}, body: Column(
  children: [
   Container(
     height: 50,
     color: Colors.yellow,
     child: Text("评论"),
   ),
    Expanded(child: EasyRefresh(child: ListView.builder(itemBuilder: (c,i){
      return Container(
        color: Colors.red,
        height: 40,
      );

    },
      itemCount: 15,

    ))
    )
  ],
));

2530442368 avatar May 13 '22 14:05 2530442368

Sorry for the late reply. With such a long header, how does pull to refresh suppose to work?

daohoangson avatar May 19 '23 03:05 daohoangson