How to make CupertinoActivityIndicator fully white

Issue

enter image description here
I want to change the barBackgroundColor and primary Color fully white of CupertinoActivityIndicator but it show grey here is two colors one is white and the second one is grey i want to make both fully white.

 Container(
        height: 80,
        width: 80,
        decoration: BoxDecoration(
            color: Colors.black,
          borderRadius: BorderRadius.circular(8)
        ),
        child: Theme(
            data: ThemeData(
                cupertinoOverrideTheme:
                    CupertinoThemeData(     brightness: Brightness.dark,
                      primaryColor: CupertinoColors.extraLightBackgroundGray,
                      barBackgroundColor: CupertinoColors.extraLightBackgroundGray,
                      scaffoldBackgroundColor: CupertinoColors.black,)),
            child: CupertinoActivityIndicator(animating: true, radius: 20,)),
      ),

i also change the color but it Still Not Wroking Please tell me how can i get fully white indicator

Container(
    height: 80,
    width: 80,
    decoration: BoxDecoration(
        color: Colors.black,
      borderRadius: BorderRadius.circular(8)
    ),
    child: Theme(
        data: ThemeData(
            cupertinoOverrideTheme:
                CupertinoThemeData(
                  brightness: Brightness.dark,
                  primaryColor:   CupertinoDynamicColor.withBrightness(
                color: CupertinoColors.white,
                  darkColor: CupertinoColors.white,
                ),
                  barBackgroundColor:   CupertinoDynamicColor.withBrightness(
                    color: CupertinoColors.white,
                    darkColor: CupertinoColors.white,
                  ),
                  scaffoldBackgroundColor:   CupertinoDynamicColor.withBrightness(
                    color: CupertinoColors.white,
                    darkColor: CupertinoColors.white,
                  ),
                )),
        child: CupertinoActivityIndicator(animating: true, radius: 20,)),
  ),

Solution

CupertinoActivityIndicator no longer supports a custom color Click Here to check Answer

Answered By – Musab

Leave a Comment