Skip to content

Commit 5f2901c

Browse files
committed
Update for latest VS Code / Flutter
1 parent 2b27d1a commit 5f2901c

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.devcontainer/devcontainer.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
"dockerfile": "Dockerfile"
44
},
55
"name": "Flutter",
6-
"extensions": [
7-
"Dart-Code.dart-code",
8-
"Dart-Code.flutter"
9-
],
6+
"customizations": {
7+
"vscode": {
8+
"extensions": [
9+
"Dart-Code.dart-code",
10+
"Dart-Code.flutter"
11+
]
12+
}
13+
}
1014
}

lib/main.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class MyApp extends StatelessWidget {
2626
}
2727

2828
class MyHomePage extends StatefulWidget {
29-
MyHomePage({Key key, this.title}) : super(key: key);
29+
MyHomePage({super.key, required this.title});
3030

3131
// This widget is the home page of your application. It is stateful, meaning
3232
// that it has a State object (defined below) that contains fields that affect
@@ -94,10 +94,7 @@ class _MyHomePageState extends State<MyHomePage> {
9494
Text(
9595
'You have pushed the button this many times:',
9696
),
97-
Text(
98-
'$_counter',
99-
style: Theme.of(context).textTheme.display1,
100-
),
97+
Text('$_counter'),
10198
],
10299
),
103100
),

pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ name: github_codespaces_flutter_web
22
description: A sample Flutter web application.
33
version: 1.0.0
44
homepage: https://github.com/DanTup/github-codespaces-flutter-web
5-
author: Danny Tuppeny <[email protected]>
65

76
environment:
8-
sdk: ">=2.1.0 <3.0.0"
7+
sdk: ">=3.1.0 <4.0.0"
98

109
dependencies:
1110
flutter:

0 commit comments

Comments
 (0)