skip to Main Content

how to change background color of a customized bottom navigation bar in flutter?

return Scaffold( // key: scaffoldKey, extendBody: true, // bottomNavigationBar: bottomNavigationBar: Container( height: 80, child: ClipRRect( borderRadius: BorderRadius.only( topLeft: Radius.circular(80.0), topRight: Radius.circular(80.0), ), child: BottomNavigationBar( // currentIndex: _selectedIndex, selectedItemColor: Colors.amber[800], // onTap: _onItemTapped, items: <BottomNavigationBarItem>[ BottomNavigationBarItem( icon: Icon(Icons.home), label: 'Home', ),…

VIEW QUESTION

Make TextField Autoscroll when keyboard popsup in flutter

This is my Login page code Scaffold( body: SafeArea( child: Padding( padding: const EdgeInsets.symmetric(horizontal: 40), child: _loading ? Center(child: CircularProgressIndicator()) : SingleChildScrollView( child: Column( children: [ SizedBox( height: 120.h, ), Image.asset( "assets/splash.png", width: MediaQuery.of(context).size.width / 2.2, ), SizedBox( height: 60.h,…

VIEW QUESTION

flutter camera not reinitializing on iOS

I need to use camera in two screens when one screen push another screen. In that case the camera shows black screen when I go back from second widget: import 'dart:async'; import 'package:camera/camera.dart'; import 'package:flutter/material.dart'; List<CameraDescription> cameras = []; late…

VIEW QUESTION
Back To Top
Search