Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion challenges/1/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';

// Flutter is Google's UI toolkit for building beautiful, natively compiled applications for mobile
const flutterBlurb =
"Flutter is Google's UI toolkit for building beautiful, natively compiled applications for mobile, web, desktop, and embedded devices from a single codebase.";
const challengeTitle = 'Challenge 1';
Expand All @@ -18,7 +19,7 @@ class MyApp extends StatelessWidget {
appBar: AppBar(title: const Text(challengeTitle)),
body: Center(
child: Row(
children: const [Text(flutterBlurb)],
children: const [Expanded(child: Text(flutterBlurb))],
),
),
),
Expand Down
4 changes: 0 additions & 4 deletions challenges/1/test/widget_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:devtools_adventure/main.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';

const flutterBlurb =
Expand All @@ -14,8 +13,5 @@ void main() {

// Verify that the expected text is present
expect(find.text(flutterBlurb), findsOneWidget);

// Verify the expected widgets
expect(find.byType(Text), findsOneWidget);
});
}