refactor(apps): 主题系统迁移至 ColorScheme + 扩展架构并支持 Dark Mode
This commit is contained in:
@@ -20,9 +20,10 @@ class LinkButton extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final colorScheme = Theme.of(context).colorScheme;
|
||||
final color = enabled
|
||||
? (foregroundColor ?? AppColors.authLinkText)
|
||||
: AppColors.slate300;
|
||||
? (foregroundColor ?? colorScheme.primary)
|
||||
: colorScheme.outline;
|
||||
|
||||
return TextButton(
|
||||
onPressed: enabled ? onTap : null,
|
||||
|
||||
Reference in New Issue
Block a user