I am trying to extend the color scheme used by my first app. I created a separate file that contains the following:
import 'package:flutter/cupertino.dart';
class Testy extends CupertinoThemeData {
final Color bgws = Color.fromRGBO(120, 120, 120, 1);
}
I then imported it into Main.Dart but cannot see how to use my new color. I thought Testy.bgws
would do it but clearly I am missing something.
You can use default
textTheme
without Cupertino likeand use it
Theme.of(context)...
also don't forget add
appThemeLight
toMaterialApp
liketheme: appThemeLight