Skip to content

Instantly share code, notes, and snippets.

@mukireus
Created February 26, 2020 08:48
Show Gist options
  • Save mukireus/8b89a6347f3d26c72eec3604749c5bfd to your computer and use it in GitHub Desktop.
Save mukireus/8b89a6347f3d26c72eec3604749c5bfd to your computer and use it in GitHub Desktop.
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