Commit 2480c4d4 authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Handle pluralisation in Cupertino button demo (#9420)

Also switches to single quotes for consistency with surrounding code.
parent 0d152a6b
...@@ -34,7 +34,9 @@ class _CupertinoButtonDemoState extends State<CupertinoButtonsDemo> { ...@@ -34,7 +34,9 @@ class _CupertinoButtonDemoState extends State<CupertinoButtonsDemo> {
child: new Column( child: new Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget> [ children: <Widget> [
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)), const Padding(padding: const EdgeInsets.all(12.0)),
new Align( new Align(
alignment: const FractionalOffset(0.5, 0.4), alignment: const FractionalOffset(0.5, 0.4),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment