diff --git a/examples/flutter_gallery/lib/demo/cupertino/cupertino_buttons_demo.dart b/examples/flutter_gallery/lib/demo/cupertino/cupertino_buttons_demo.dart index b45a203cda..79685ecdc8 100644 --- a/examples/flutter_gallery/lib/demo/cupertino/cupertino_buttons_demo.dart +++ b/examples/flutter_gallery/lib/demo/cupertino/cupertino_buttons_demo.dart @@ -34,7 +34,9 @@ class _CupertinoButtonDemoState extends State { child: new Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - new Text(_pressedCount > 0 ? "Button pressed $_pressedCount times" : " "), + new Text(_pressedCount > 0 + ? 'Button pressed $_pressedCount time${_pressedCount == 1 ? '' : 's'}' + : ' '), const Padding(padding: const EdgeInsets.all(12.0)), new Align( alignment: const FractionalOffset(0.5, 0.4),