Using TabBar,TabBarView with any Widget(Dialog with round corners) and blur the background - Flutter
This is a different example of using TabBar with widgets as I have only seen blogs for it to be used in Scaffold Appbar and Body.Here we will use TabBar with Dialog Widget . TabBar and TabBarView widget examples where you don't use DefaultTabController() which provide us with a listenable, has to be explicitly provided with a tab controller. You can provide barrierDismissible argument to prevent dialog from closing on outside touch in showDialog() class CustomDialogTabBar extends StatelessWidget { @override Widget build (BuildContext context) { return Scaffold ( appBar: AppBar ( title: Text ( "AppBar" ) , ) , body: Center (child: Text ( "Abhina Kumar Sintoo Blogs - Flutter Expert" ) , ) , floatingActionButton: FloatingActionButton ( child: Icon (Icons. forward ) , onPressed: () => showDialog( context: context , builder: (context) => BackdropDialog2 ( height: MediaQ...