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,22 @@
import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter_test/flutter_test.dart';
import 'app_test.dart';
void main() {
testWidgets('InfoLabel labelStyle is applied correctly to Text',
(WidgetTester tester) async {
const labelStyle = TextStyle();
await tester.pumpWidget(
wrapApp(
child: const InfoLabel(
label: 'Label text',
labelStyle: labelStyle,
),
),
);
expect(tester.widget<Text>(find.text('Label text')).style, labelStyle);
});
}