import 'package:flutter/material.dart';
 

class MyExample extends StatefulWidget {
MyExample({Key key}) : super(key: key);

@override
State<MyExample> createState() => _MyExampleState();
}

class _MyExampleState extends State<MyExample> {

final Color sliverbgColor = Colors.blueAccent;
@override
Widget build(BuildContext context) {
 

return Scaffold(
resizeToAvoidBottomPadding: false,
resizeToAvoidBottomInset: false,
body: Container(
color: sliverbgColor,
child: NestedScrollView(
headerSliverBuilder:
(BuildContext context, bool innerBoxIsScrolled) {
return <Widget>[
revokeAppBar(
context: context,
topTitle: 'TSP',
style: TextStyle(
fontSize: 18,
color: Colors.white,
fontWeight: FontWeight.bold),
fontsize: 16,
text: 'Permission detail',
maxlines: 1,
softWrap: false)
];
},
body: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10),
topRight: Radius.circular(10)),
color: vbgColor,
),
child: ListView(padding: EdgeInsets.zero, children: [
SizedBox(height: 10),
Container(child:Text('list', style: TextStyle(color: Colors.black,fontSize: 15)))
 
])))));
}
}