Reorganize the calculator demo (#4536)

This patch is a warmup to improving the visuals in the calculator demo.

Related to #4535
This commit is contained in:
Adam Barth
2016-06-13 11:44:46 -07:00
committed by GitHub
parent d2e3493a6c
commit 1d5d7f4ad3
7 changed files with 277 additions and 282 deletions

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_gallery/demo/calculator_logic.dart';
import 'package:flutter_gallery/demo/calculator/logic.dart';
import 'package:test/test.dart';
void main() {

View File

@@ -14,7 +14,7 @@ void main() {
// We press the "1" and the "2" buttons and check that the display
// reads "12".
testWidgets('Flutter calculator app smoke test', (WidgetTester tester) async {
await tester.pumpWidget(new Calculator());
await tester.pumpWidget(new CalculatorDemo());
Finder oneButton = find.widgetWithText(InkResponse, '1');
expect(oneButton, findsOneWidget);