1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] FloatingActionButton not displaying Flutter

Discussão em 'Mobile' iniciado por Stack, Setembro 28, 2024 às 04:12.

  1. Stack

    Stack Membro Participativo

    I am creating a FloatingActionButton inside Scaffold widget, but it is not visible and clickable. There is no error in the console and the body section of the scaffold is visible. The background color of the FAB is green and icon color is black and the scaffold color is white so I believe it is not due color contrast. @override Widget build(BuildContext context) { return Scaffold( body: const Center(child: Text("Hello Products")), floatingActionButton: FloatingActionButton( backgroundColor: KColors.primary, onPressed: (){KLoggerHelper.debug("FAB is here");}, child: const Icon(Iconsax.add, color: KColors.black), ), ); }

    My Flutter Version is Flutter 3.24.1 • channel stable • https://github.com/flutter/flutter.git Framework • revision 5874a72aa4 (5 weeks ago) • 2024-08-20 16:46:00 -0500 Engine • revision c9b9d5780d Tools • Dart 3.5.1 • DevTools 2.37.2

    1. tried changing color contrast did not work.
    2. tried downgrading flutter version did not work.

    Continue reading...

Compartilhe esta Página