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:
@@ -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() {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user