// Copyright 2014 The Flutter Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.import'package:flutter/material.dart';import'package:flutter_api_samples/material/icon_button/icon_button.1.dart'asexample;import'package:flutter_test/flutter_test.dart';voidmain(){testWidgets('IconButton',(WidgetTestertester)async{awaittester.pumpWidget(constexample.IconButtonExampleApp(),);awaittester.pumpAndSettle();expect(find.byIcon(Icons.android),findsOneWidget);finalInkink=tester.widget<Ink>(find.ancestor(of:find.byIcon(Icons.android),matching:find.byType(Ink),),);finalShapeDecorationdecoration=ink.decoration!asShapeDecoration;expect(decoration.color,Colors.lightBlue);expect(decoration.shape,constCircleBorder());finalIconButtoniconButton=ink.child!asIconButton;expect(iconButton.color,Colors.white);});}