mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 14:58:34 +00:00
Landing beta changes in master for the new stable release (#747)
This commit is contained in:
@@ -65,7 +65,7 @@ class _CartTotal extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var hugeStyle =
|
||||
Theme.of(context).textTheme.headline1.copyWith(fontSize: 48);
|
||||
Theme.of(context).textTheme.headline1!.copyWith(fontSize: 48);
|
||||
|
||||
return SizedBox(
|
||||
height: 200,
|
||||
@@ -85,7 +85,7 @@ class _CartTotal extends StatelessWidget {
|
||||
SizedBox(width: 24),
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
Scaffold.of(context).showSnackBar(
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(content: Text('Buying not supported yet.')));
|
||||
},
|
||||
style: TextButton.styleFrom(primary: Colors.white),
|
||||
|
||||
Reference in New Issue
Block a user