of static method
Implementation
static of(BuildContext context) => instance.copyWith(
useMaterial3: false,
cardTheme: CardTheme.of(context).copyWith(color: Colors.white),
dialogTheme: DialogTheme.of(context).copyWith(
backgroundColor: Colors.white,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(10)))),
appBarTheme: instance.appBarTheme.copyWith(
iconTheme: const IconThemeData(color: Colors.white),
backgroundColor: primary,
titleTextStyle: const TextStyle(color: Colors.white, fontSize: 18),
centerTitle: true),
inputDecorationTheme: const InputDecorationTheme(
contentPadding: EdgeInsets.all(17),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.black26))),
primaryColor: primary,
scaffoldBackgroundColor: const Color(0xFFFAFAFA),
colorScheme: instance.colorScheme.copyWith(
brightness: Brightness.light,
primary: primary,
secondary: secondary,
error: danger,
tertiary: warn,
));