Made build portable

This commit is contained in:
Alessandro Autiero
2022-10-07 17:23:30 +02:00
parent 000a2a53ed
commit 55467152c9
128 changed files with 54402 additions and 7 deletions

View File

@@ -0,0 +1,21 @@
import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter_test/flutter_test.dart';
import 'app_test.dart';
void main() {
testWidgets('DropdownButton leading is shown correctly', (tester) async {
await tester.pumpWidget(wrapApp(
child: DropDownButton(
items: [
MenuFlyoutItem(text: const Text('one'), onPressed: () {}),
MenuFlyoutItem(text: const Text('two'), onPressed: () {}),
],
leading: const Icon(FluentIcons.number),
title: const Text('Numbers'),
),
));
expect(find.byIcon(FluentIcons.number), findsOneWidget);
});
}