lightTheme property
Implementation
static ThemeData lightTheme = ThemeData(
fontFamily: 'Ubuntu',
brightness: Brightness.light,
radioTheme: RadioThemeData(
fillColor: MaterialStateProperty.all<Color>(kPrimaryColor)),
appBarTheme: AppBarTheme(
titleTextStyle: kHeadline1.copyWith(color: kBlackColor),
backgroundColor: kWhiteColor,
iconTheme: IconThemeData(
size: ScreenUtil().setWidth(32),
color: kBlackColor,
),
),
scaffoldBackgroundColor: kWhiteColor,
textSelectionHandleColor: Colors.grey[600],
textSelectionColor: Colors.black,
shadowColor: Colors.black12,
splashColor: Colors.transparent,
bottomAppBarColor: kWhiteColor,
bottomNavigationBarTheme: BottomNavigationBarThemeData(
selectedIconTheme: IconThemeData(
color: kPrimaryColor,
),
unselectedIconTheme: IconThemeData(),
selectedLabelStyle: kBottomLabelSelectedTextStyle.copyWith(
color: kPrimaryColor,
fontWeight: FontWeight.w500,
fontSize: ScreenUtil().setSp(10)),
unselectedLabelStyle: kBottomLabelUnselectedTextStyle.copyWith(
color: kPrimaryColor, fontSize: ScreenUtil().setSp(10)),
),
inputDecorationTheme: InputDecorationTheme(
floatingLabelBehavior: FloatingLabelBehavior.auto,
enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(color: kGreyColor),
),
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(color: kPrimaryColor),
),
border: UnderlineInputBorder(
borderSide: BorderSide(color: kGreyColor),
),
labelStyle: kBodyTextStyle,
hintStyle: kBodyTextStyle.copyWith(color: Colors.grey),
),
textTheme: TextTheme(
headline1: kHeadline1,
headline2: kHeadline2,
bodyText1: kBodyTextStyle,
bodyText2: kBodyTextStyle.copyWith(fontSize: ScreenUtil().setSp(12)),
button: kButtonTextStyle,
),
cardColor: kWhiteColor,
highlightColor: Colors.transparent,
splashFactory: InkRipple.splashFactory,
focusColor: Colors.transparent,
canvasColor: Colors.transparent,
hoverColor: Colors.transparent,
primaryColor: kPrimaryColor,
iconTheme: IconThemeData(
color: Colors.grey,
),
);