We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column( children: [ Image.asset('assets/diamond.png'), const SizedBox(height: 16.0), Text( 'SHRINE', style: Theme.of(context).textTheme.headline5, ), ], )
headline5 has deprecated. So change it to headlineSmall
The text was updated successfully, but these errors were encountered:
caption: base.caption!.copyWith( fontWeight: FontWeight.w400, fontSize: 14.0, ), caption is also deprecated. change it to bodySmall
Sorry, something went wrong.
bodyText1: base.bodyText1!.copyWith( fontWeight: FontWeight.w500, fontSize: 16.0, ), bodyText1 to bodyLarge. code will be with you.
Finally, let's have the Cancel button use the secondary color rather than the primary for increased contrast.
TextButton( child: const Text('CANCEL'), onPressed: () { _usernameController.clear(); _passwordController.clear(); }, style: TextButton.styleFrom( primary: Theme.of(context).colorScheme.secondary, ), ),
had to change 'primary' to 'foregroundColor'
No branches or pull requests
Column(
children: [
Image.asset('assets/diamond.png'),
const SizedBox(height: 16.0),
Text(
'SHRINE',
style: Theme.of(context).textTheme.headline5,
),
],
)
headline5 has deprecated. So change it to headlineSmall
The text was updated successfully, but these errors were encountered: