Advertisement
Guest User

Untitled

a guest
Jul 14th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 0.82 KB | None | 0 0
  1. return Scaffold(
  2.       body: NestedScrollView(
  3.         headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
  4.           return <Widget>[
  5.             SliverToBoxAdapter(
  6.               child: Container(
  7.                 height: 80,
  8.                 width: MediaQuery.of(context).size.width,
  9.                 decoration: BoxDecoration(
  10.                   borderRadius: BorderRadius.only(
  11.                     bottomLeft: Radius.circular(20),
  12.                     bottomRight: Radius.circular(20),
  13.                   ),
  14.                   color: Colors.red,
  15.                 ),
  16.                 child: Center(
  17.                   child: Text('Hello'),
  18.                 ),
  19.               ),
  20.             )
  21.           ];
  22.         },
  23.         body: Center(
  24.           child: Text("Sample Text"),
  25.         ),
  26.       ),
  27.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement