From bf4342fa9aa75ceab9078a7e6fb57adf2444de47 Mon Sep 17 00:00:00 2001 From: Viktor Lidholt Date: Tue, 6 Oct 2015 09:28:05 -0700 Subject: [PATCH] Adds default text style --- examples/game/lib/main.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/game/lib/main.dart b/examples/game/lib/main.dart index 2cb407aa3..51366d9a4 100644 --- a/examples/game/lib/main.dart +++ b/examples/game/lib/main.dart @@ -119,8 +119,10 @@ class GameDemoState extends State { width: 128.0, height: 128.0 ), - new Text( - "Last Score: $_lastScore", + new DefaultTextStyle( + child: new Text( + "Last Score: $_lastScore" + ), style: new TextStyle(fontSize:20.0) ) ],