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

How to create custom timeline widget in flutter

How to create Custom Timelime in flutter like bellow: This is the code i have tried so far: IntrinsicHeight( child: Row( children: [ Container( width: 8.w, height: double.infinity, decoration: BoxDecoration( borderRadius: BorderRadius.circular(16.r), gradient: const LinearGradient( begin: Alignment.topCenter, end: Alignment.bottomCenter, colors:…

VIEW QUESTION
Back To Top
Search