The default primaryColor is used instead of the provided one in some places like bottomNavigationBar, TextFormField, etc.

Here's how I am setting the colour:

```
MaterialApp(
title: appName,
theme: ThemeData(
  primaryColor: const Color(0xFFFFFFFF),
),

```

Setting theme with the 'color: Theme.of(context).primaryColor' not working as well.