Guest User

Untitled

a guest
Dec 11th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. class PostScreen extends StatelessWidget {
  2. @override
  3. Widget build(BuildContext context) {
  4. return Scaffold(
  5. body: NestedScrollView(
  6. headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
  7. return <Widget>[
  8. SliverAppBar(
  9. floating: true,
  10. pinned: false,
  11. snap: true,
  12. title: Text('News'),
  13. forceElevated: true,
  14. actions: [
  15. IconButton(
  16. icon: Icon(Icons.share),
  17. tooltip: 'Share',
  18. onPressed: () {
  19. // TODO
  20. },
  21. ),
  22. ],
  23. ),
  24. ];
  25. },
  26. body: ListView(
  27. padding: EdgeInsets.all(0),
  28. children: <Widget>[
  29. // ...
  30. ],
  31. ),
  32. ),
  33. );
  34. }
  35. }
  36.  
  37. SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.bottom]),
Add Comment
Please, Sign In to add comment