Created
February 26, 2020 08:48
-
-
Save mukireus/8b89a6347f3d26c72eec3604749c5bfd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class _HomeBodyScreenState extends State<HomeBodyScreen> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: UIColorHelper.LIGHT_COLOR, | |
body: _body, | |
); | |
} | |
Widget get _body => | |
CustomScrollView(slivers: <Widget>[_sliverAppBar, _sliverFillRemaing]); | |
Widget get _sliverAppBar => SliverAppBar( | |
backgroundColor: UIColorHelper.LIGHT_COLOR, | |
flexibleSpace: FlexibleSpaceBar( | |
title: Text( | |
'LOGO', | |
style: TextStyle( | |
color: UIColorHelper.PRIMARY_COLOR, | |
fontWeight: FontWeight.bold, | |
fontSize: 60, | |
), | |
), | |
centerTitle: true, | |
), | |
expandedHeight: 350.0, | |
floating: true, | |
pinned: true, | |
snap: true, | |
elevation: 5.0, | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.vertical(bottom: Radius.circular(30))), | |
); | |
Widget get _sliverFillRemaing => SliverFillRemaining(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment