-
-
Save Rahiche/cbcb21f902c954bff26f5cf417123b17 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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