Skip to content

Instantly share code, notes, and snippets.

@Rahiche
Created December 18, 2018 21:41
Show Gist options
  • Save Rahiche/cbcb21f902c954bff26f5cf417123b17 to your computer and use it in GitHub Desktop.
Save Rahiche/cbcb21f902c954bff26f5cf417123b17 to your computer and use it in GitHub Desktop.
return SafeArea(
child: CustomScrollView(
controller: controller,
slivers: <Widget>[
SliverAppBar(
pinned: true,
expandedHeight: appBarHeight,
floating: true,
flexibleSpace: Stack(
children: <Widget>[
//image background
Text(
"FlutteRotate",
style: TextStyle(color: Colors.white, fontSize: 18.0),
),
Align(
alignment: Alignment.bottomRight,
child: FloatingActionButton(
child: Icon(
Icons.add,
color: Colors.red,
),
onPressed: () {},
)),
],
),
),
SliverList(delegate:
SliverChildBuilderDelegate((BuildContext context, int index) {
return ListTile(title: Text("Flutter / $index"));
}))
],
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment