-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
88 changed files
with
138 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+21.7 KB
...check-box/zinc-light-enabled-no-value.png → ...en/check-box/zinc-dark-disabled-false.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+21.7 KB
.../check-box/zinc-dark-enabled-no-value.png → ...eck-box/zinc-dark-disabled-true-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+22.2 KB
...en/check-box/zinc-dark-disabled-value.png → ...den/check-box/zinc-dark-disabled-true.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+21.8 KB
...en/check-box/zinc-light-enabled-value.png → ...ck-box/zinc-light-disabled-true-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+21.8 KB
...den/check-box/zinc-dark-enabled-value.png → ...en/check-box/zinc-light-enabled-false.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+22.2 KB
...n/check-box/zinc-light-disabled-value.png → ...eck-box/zinc-light-enabled-true-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+53.6 KB
forui/test/golden/check-box/zinc-light-label-disabled-false-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+32.5 KB
forui/test/golden/label/zinc-dark-horizontal-FLabelState.disabled.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+32.1 KB
forui/test/golden/label/zinc-light-horizontal-FLabelState.disabled.png
Oops, something went wrong.
Binary file added
BIN
+32.6 KB
forui/test/golden/label/zinc-light-horizontal-FLabelState.enabled.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
+20 Bytes
(100%)
forui/test/golden/text_field/default-zinc-dark-focused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+16 Bytes
(100%)
forui/test/golden/text_field/default-zinc-dark-focused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+1 Byte
(100%)
forui/test/golden/text_field/default-zinc-dark-unfocused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+1 Byte
(100%)
forui/test/golden/text_field/default-zinc-dark-unfocused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+19 Bytes
(100%)
forui/test/golden/text_field/default-zinc-light-focused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+19 Bytes
(100%)
forui/test/golden/text_field/default-zinc-light-focused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-5 Bytes
(100%)
forui/test/golden/text_field/default-zinc-light-unfocused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-4 Bytes
(100%)
forui/test/golden/text_field/default-zinc-light-unfocused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+20 Bytes
(100%)
forui/test/golden/text_field/email-zinc-dark-focused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+25 Bytes
(100%)
forui/test/golden/text_field/email-zinc-dark-focused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
forui/test/golden/text_field/email-zinc-dark-unfocused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
forui/test/golden/text_field/email-zinc-dark-unfocused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+17 Bytes
(100%)
forui/test/golden/text_field/email-zinc-light-focused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+26 Bytes
(100%)
forui/test/golden/text_field/email-zinc-light-focused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
forui/test/golden/text_field/email-zinc-light-unfocused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
forui/test/golden/text_field/email-zinc-light-unfocused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-103 Bytes
(99%)
forui/test/golden/text_field/error-zinc-dark-focused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-76 Bytes
(99%)
forui/test/golden/text_field/error-zinc-dark-focused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-146 Bytes
(98%)
forui/test/golden/text_field/error-zinc-dark-unfocused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-102 Bytes
(99%)
forui/test/golden/text_field/error-zinc-dark-unfocused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-60 Bytes
(99%)
forui/test/golden/text_field/error-zinc-light-focused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-29 Bytes
(100%)
forui/test/golden/text_field/error-zinc-light-focused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-89 Bytes
(99%)
forui/test/golden/text_field/error-zinc-light-unfocused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-55 Bytes
(99%)
forui/test/golden/text_field/error-zinc-light-unfocused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+27 Bytes
(100%)
forui/test/golden/text_field/multiline-zinc-dark-focused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
forui/test/golden/text_field/multiline-zinc-dark-focused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
forui/test/golden/text_field/multiline-zinc-dark-unfocused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-13 Bytes
(100%)
forui/test/golden/text_field/multiline-zinc-dark-unfocused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+23 Bytes
(100%)
forui/test/golden/text_field/multiline-zinc-light-focused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-20 Bytes
(100%)
forui/test/golden/text_field/multiline-zinc-light-focused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
forui/test/golden/text_field/multiline-zinc-light-unfocused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-39 Bytes
(100%)
forui/test/golden/text_field/multiline-zinc-light-unfocused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+18 Bytes
(100%)
forui/test/golden/text_field/password-zinc-dark-focused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+30 Bytes
(100%)
forui/test/golden/text_field/password-zinc-dark-focused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-5 Bytes
(100%)
forui/test/golden/text_field/password-zinc-dark-unfocused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-10 Bytes
(100%)
forui/test/golden/text_field/password-zinc-dark-unfocused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+19 Bytes
(100%)
forui/test/golden/text_field/password-zinc-light-focused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
+22 Bytes
(100%)
forui/test/golden/text_field/password-zinc-light-focused-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-4 Bytes
(100%)
forui/test/golden/text_field/password-zinc-light-unfocused-no-text-text-field.png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
forui/test/golden/text_field/password-zinc-light-unfocused-text-text-field.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
@Tags(['golden']) | ||
library; | ||
|
||
import 'package:flutter/material.dart'; | ||
|
||
import 'package:flutter_test/flutter_test.dart'; | ||
|
||
import 'package:forui/forui.dart'; | ||
import '../test_scaffold.dart'; | ||
|
||
void main() { | ||
group('FLabel', () { | ||
for (final (name, theme, _) in TestScaffold.themes) { | ||
for (final state in FLabelState.values) { | ||
testWidgets('$name horizontal with ${state}', (tester) async { | ||
await tester.pumpWidget( | ||
TestScaffold( | ||
data: theme, | ||
child: SizedBox( | ||
width: 300, | ||
child: FLabel( | ||
axis: Axis.horizontal, | ||
label: Text('Email'), | ||
description: Text('Enter your email address.'), | ||
error: Text('Please enter a valid email address.'), | ||
state: state, | ||
child: DecoratedBox( | ||
decoration: BoxDecoration(borderRadius: BorderRadius.all(Radius.circular(5)), color: Colors.grey), | ||
child: SizedBox(width: 16, height: 16), | ||
), | ||
), | ||
), | ||
), | ||
); | ||
|
||
await expectLater( | ||
find.byType(TestScaffold), | ||
matchesGoldenFile('label/$name-horizontal-${state}.png'), | ||
); | ||
}); | ||
} | ||
|
||
for (final state in FLabelState.values) { | ||
testWidgets('$name vertical with ${state}', (tester) async { | ||
await tester.pumpWidget( | ||
TestScaffold( | ||
data: theme, | ||
child: FLabel( | ||
axis: Axis.vertical, | ||
label: Text('Email'), | ||
description: Text('Enter your email address.'), | ||
error: Text('Please enter a valid email address.'), | ||
state: state, | ||
child: DecoratedBox( | ||
decoration: BoxDecoration(borderRadius: BorderRadius.all(Radius.circular(5)), color: Colors.grey), | ||
child: SizedBox(width: 200, height: 30), | ||
), | ||
), | ||
), | ||
); | ||
|
||
await expectLater( | ||
find.byType(TestScaffold), | ||
matchesGoldenFile('label/$name-vertical-${state}.png'), | ||
); | ||
}); | ||
} | ||
} | ||
}); | ||
} |