Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_sticky_section_list

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: Text(widget.title)),
        body: Container(
          // height: 100,
          color: Colors.blue,
          child: StickySectionList(
              delegate: StickySectionListDelegate(
            getSectionCount: () => 10,
            getItemCount: (sectionIndex) => 10,
            buildSection: (context, sectionIndex) => Container(
              color: Colors.red,
              child: Text("section:$sectionIndex"),
              padding: EdgeInsets.all(10),
            ),
            buildItem: (context, sectionIndex, itemIndex) => Container(
              color: Colors.white,
              child: Text("item:$itemIndex"),
              padding: EdgeInsets.all(10),
            ),
          )),
        ));
  }
}

About

flutter sticky section list

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages