Home > Mobile >  change background appBar and how to style
change background appBar and how to style

Time:11-17

I just want to remove the elevation, move the title in the middle and change the color

  appBar: AppBar(
    title: Text(
      "Deskripsi",
      style: blackTextStyle.copyWith(
        fontWeight: semiBold,
      ),
    ),
  ),

CodePudding user response:

centreTile for placing text in middle.

elevation property for dropshadow

backgroundColor for app bar color

appBar: AppBar(
backgroundColor: backgroudColor,
elevation: 0,
centerTitle: true,
    title: Text(
      "Deskripsi",
      style: blackTextStyle.copyWith(
        fontWeight: semiBold,
      ),
    ),
   ),

CodePudding user response:

Try below code hope its helpful to you. refer AppBar image

  • Related