Closed trm11tkr closed 1 year ago
一覧画面 | 詳細画面 |
---|---|
一覧画面(ダークモード) | 詳細画面(ダークモード) |
---|---|
primary' is deprecated and shouldn't be used. Use foregroundColor instead. This feature was deprecated after v3.1.0.
警告されたので、以下のように修正
elevatedButtonTheme: ElevatedButtonThemeData(
style: ButtonStyle(
textStyle: MaterialStateProperty.resolveWith(
(state) => const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
),
foregroundColor: MaterialStateProperty.resolveWith(
(state) => ColorName.textColorDark,
),
backgroundColor: MaterialStateProperty.resolveWith(
(state) => ColorName.primary,
),
),
),