9bd2286eb5
Changelog: iOS-style surfaces, alerts and sheets; clearer TV focus
13 lines
423 B
Dart
13 lines
423 B
Dart
import 'package:fl_clash/ui/icons/icons.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
extension GlyphFinders on CommonFinders {
|
|
Finder byGlyph(Glyph glyph) => byWidgetPredicate(
|
|
(widget) => widget is GlyphIcon && widget.glyph == glyph,
|
|
description: 'GlyphIcon($glyph)',
|
|
);
|
|
|
|
Finder widgetWithGlyph(Type widgetType, Glyph glyph) =>
|
|
ancestor(of: byGlyph(glyph), matching: byType(widgetType));
|
|
}
|