skip to Main Content

Flutter – How to add top padding to a Stack Bottom Navigation Bar

class MainScreen extends StatelessWidget { MainScreen({super.key}); List<Widget> pageList = const [ HomePage(), FlightsPage(), DirectoryPage(), GuidePage() ]; @override Widget build(BuildContext context) { final controller = Get.put(TabIndexController()); return Obx(() => Scaffold( body: Stack( children: [ pageList[controller.tabIndex], Align( alignment: Alignment.bottomCenter, child: Theme( data:…

VIEW QUESTION

Flutter – How to customize Tab Bar view as below

Widget build(BuildContext context) { return SafeArea( child: DefaultTabController( length: 3, child: Scaffold( appBar: AppBar( automaticallyImplyLeading: false, title: const Text( 'My Merchants', style: TextStyle( color: Colors.black, fontSize: 22, fontWeight: FontWeight.w600, fontFamily: '.SF UI Text'), ), actions: [ TextButton( onPressed: () {},…

VIEW QUESTION
Back To Top
Search