Skip to content

RaisedButton.icon is not found by CommonFinders #70293

@yerzhant

Description

@yerzhant

The following code does not find a button:

expect(find.byType(RaisedButton), findsOneWidget);

which is created like this (inside a Column widget, if it makes sense):

                  RaisedButton.icon(
                    onPressed: () {},
                    icon: const Icon(Icons.refresh),
                    label: const Text('ОБНОВИТЬ'),
                  ),

If a button is created by RaisedButton (w/o icon factory) then the finder finds the button.

[✓] Flutter (Channel stable, 1.22.3, on Linux, locale en_US.UTF-8)

Metadata

Metadata

Assignees

No one assigned

    Labels

    f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions