From c67904753098ea360eff5d03ff05fd11ae6a40bf Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Tue, 6 Apr 2021 16:40:17 +0000 Subject: [PATCH] Upgrade the 'web-simple' project template to null safety. Change-Id: I7b90a81a37085d613f6927529ef05e2a3915a32e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/194106 Reviewed-by: Konstantin Shcheglov Commit-Queue: Devon Carew --- pkg/dartdev/lib/src/templates/web_simple.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/dartdev/lib/src/templates/web_simple.dart b/pkg/dartdev/lib/src/templates/web_simple.dart index 0fd6c347d7f..12ed1ce396e 100644 --- a/pkg/dartdev/lib/src/templates/web_simple.dart +++ b/pkg/dartdev/lib/src/templates/web_simple.dart @@ -31,7 +31,7 @@ version: 1.0.0 # homepage: https://www.example.com environment: - sdk: '>=2.10.0 <3.0.0' + sdk: '>=2.12.0 <3.0.0' # dependencies: # path: ^1.7.0 @@ -72,7 +72,7 @@ final String _main = ''' import 'dart:html'; void main() { - querySelector('#output').text = 'Your Dart app is running.'; + querySelector('#output')?.text = 'Your Dart app is running.'; } ''';