From f0f31c27e9bff9c47d640d8b58188e9a348dd0d0 Mon Sep 17 00:00:00 2001 From: Nishant Srivastava Date: Mon, 21 Aug 2017 13:57:10 -0700 Subject: [PATCH] cleanup --- simple_material_app/lib/main.dart | 7 ++++++- using_http_get/test/widget_test.dart | 29 ---------------------------- 2 files changed, 6 insertions(+), 30 deletions(-) diff --git a/simple_material_app/lib/main.dart b/simple_material_app/lib/main.dart index 7d7205f..4d231cd 100644 --- a/simple_material_app/lib/main.dart +++ b/simple_material_app/lib/main.dart @@ -2,15 +2,20 @@ import 'package:flutter/material.dart'; void main() { runApp(new MaterialApp( + // Title title: "Simple Material App", + // Home home: new Scaffold( + // Appbar appBar: new AppBar( + // Title title: new Text("Simple Material App"), ), + // Body body: new Container( child: new Center( child: new Text("Hello World!"), ), ), ))); -} +} \ No newline at end of file diff --git a/using_http_get/test/widget_test.dart b/using_http_get/test/widget_test.dart index 2c2b24a..e69de29 100644 --- a/using_http_get/test/widget_test.dart +++ b/using_http_get/test/widget_test.dart @@ -1,29 +0,0 @@ -// This is a basic Flutter widget test. -// To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter -// provides. For example, you can send tap and scroll gestures. You can also use WidgetTester to -// find child widgets in the widget tree, read text, and verify that the values of widget properties -// are correct. - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; - -import '../lib/main.dart'; - -void main() { - testWidgets('Counter increments smoke test', (WidgetTester tester) async { - // Build our app and trigger a frame. - await tester.pumpWidget(new MyApp()); - - // Verify that our counter starts at 0. - expect(find.text('0'), findsOneWidget); - expect(find.text('1'), findsNothing); - - // Tap the '+' icon and trigger a frame. - await tester.tap(find.byIcon(Icons.add)); - await tester.pump(); - - // Verify that our counter has incremented. - expect(find.text('0'), findsNothing); - expect(find.text('1'), findsOneWidget); - }); -}