-
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
83 changed files
with
265 additions
and
97 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
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
Binary file modified
BIN
-783 Bytes
(97%)
forui/test/golden/badge/zinc-dark-FBadgeVariant.destructive-badge-content.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 modified
BIN
-829 Bytes
(97%)
forui/test/golden/badge/zinc-dark-FBadgeVariant.outline-badge-content.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 modified
BIN
-835 Bytes
(97%)
forui/test/golden/badge/zinc-dark-FBadgeVariant.primary-badge-content.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 modified
BIN
-885 Bytes
(97%)
forui/test/golden/badge/zinc-dark-FBadgeVariant.secondary-badge-content.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 modified
BIN
-626 Bytes
(98%)
forui/test/golden/badge/zinc-light-FBadgeVariant.destructive-badge-content.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 modified
BIN
-858 Bytes
(97%)
forui/test/golden/badge/zinc-light-FBadgeVariant.outline-badge-content.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 modified
BIN
-836 Bytes
(97%)
forui/test/golden/badge/zinc-light-FBadgeVariant.primary-badge-content.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 modified
BIN
-856 Bytes
(97%)
forui/test/golden/badge/zinc-light-FBadgeVariant.secondary-badge-content.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 modified
BIN
-711 Bytes
(97%)
.../golden/button/zinc-dark-FButtonVariant.destructive-disabled-button-content.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 modified
BIN
-689 Bytes
(97%)
...t/golden/button/zinc-dark-FButtonVariant.destructive-enabled-button-content.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 modified
BIN
-695 Bytes
(97%)
...est/golden/button/zinc-dark-FButtonVariant.outlined-disabled-button-content.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 modified
BIN
-649 Bytes
(98%)
...test/golden/button/zinc-dark-FButtonVariant.outlined-enabled-button-content.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 modified
BIN
-523 Bytes
(98%)
...test/golden/button/zinc-dark-FButtonVariant.primary-disabled-button-content.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 modified
BIN
-792 Bytes
(97%)
.../test/golden/button/zinc-dark-FButtonVariant.primary-enabled-button-content.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 modified
BIN
-704 Bytes
(97%)
...st/golden/button/zinc-dark-FButtonVariant.secondary-disabled-button-content.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 modified
BIN
-673 Bytes
(97%)
...est/golden/button/zinc-dark-FButtonVariant.secondary-enabled-button-content.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 modified
BIN
-388 Bytes
(98%)
...golden/button/zinc-light-FButtonVariant.destructive-disabled-button-content.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 modified
BIN
-608 Bytes
(98%)
.../golden/button/zinc-light-FButtonVariant.destructive-enabled-button-content.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 modified
BIN
-694 Bytes
(97%)
...st/golden/button/zinc-light-FButtonVariant.outlined-disabled-button-content.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 modified
BIN
-743 Bytes
(97%)
...est/golden/button/zinc-light-FButtonVariant.outlined-enabled-button-content.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 modified
BIN
-512 Bytes
(98%)
...est/golden/button/zinc-light-FButtonVariant.primary-disabled-button-content.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 modified
BIN
-705 Bytes
(97%)
...test/golden/button/zinc-light-FButtonVariant.primary-enabled-button-content.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 modified
BIN
-722 Bytes
(97%)
...t/golden/button/zinc-light-FButtonVariant.secondary-disabled-button-content.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 modified
BIN
-810 Bytes
(97%)
...st/golden/button/zinc-light-FButtonVariant.secondary-enabled-button-content.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.
Oops, something went wrong.
Binary file modified
BIN
-5.21 KB
(77%)
forui/test/golden/dialog/zinc-dark-FDialogAlignment.horizontal-content.png
Oops, something went wrong.
Binary file modified
BIN
-5.25 KB
(77%)
forui/test/golden/dialog/zinc-dark-FDialogAlignment.vertical-content.png
Oops, something went wrong.
Binary file modified
BIN
-5.39 KB
(76%)
forui/test/golden/dialog/zinc-light-FDialogAlignment.horizontal-content.png
Oops, something went wrong.
Binary file modified
BIN
-5.24 KB
(77%)
forui/test/golden/dialog/zinc-light-FDialogAlignment.vertical-content.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.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-992 Bytes
(88%)
forui/test/golden/text_field/default-zinc-dark-focused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.18 KB
(87%)
forui/test/golden/text_field/default-zinc-dark-focused-text.png
Oops, something went wrong.
Binary file modified
BIN
-1020 Bytes
(88%)
forui/test/golden/text_field/default-zinc-dark-unfocused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.13 KB
(87%)
forui/test/golden/text_field/default-zinc-dark-unfocused-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.09 KB
(87%)
forui/test/golden/text_field/default-zinc-light-focused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.23 KB
(86%)
forui/test/golden/text_field/default-zinc-light-focused-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.1 KB
(86%)
forui/test/golden/text_field/default-zinc-light-unfocused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.17 KB
(87%)
forui/test/golden/text_field/default-zinc-light-unfocused-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.18 KB
(86%)
forui/test/golden/text_field/email-zinc-dark-focused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-493 Bytes
(92%)
forui/test/golden/text_field/email-zinc-dark-focused-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.17 KB
(86%)
forui/test/golden/text_field/email-zinc-dark-unfocused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-452 Bytes
(92%)
forui/test/golden/text_field/email-zinc-dark-unfocused-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.28 KB
(85%)
forui/test/golden/text_field/email-zinc-light-focused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-400 Bytes
(94%)
forui/test/golden/text_field/email-zinc-light-focused-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.28 KB
(85%)
forui/test/golden/text_field/email-zinc-light-unfocused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-334 Bytes
(94%)
forui/test/golden/text_field/email-zinc-light-unfocused-text.png
Oops, something went wrong.
Binary file modified
BIN
-852 Bytes
(90%)
forui/test/golden/text_field/error-zinc-dark-focused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.08 KB
(88%)
forui/test/golden/text_field/error-zinc-dark-focused-text.png
Oops, something went wrong.
Binary file modified
BIN
-867 Bytes
(89%)
forui/test/golden/text_field/error-zinc-dark-unfocused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.08 KB
(88%)
forui/test/golden/text_field/error-zinc-dark-unfocused-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.09 KB
(87%)
forui/test/golden/text_field/error-zinc-light-focused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.25 KB
(86%)
forui/test/golden/text_field/error-zinc-light-focused-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.11 KB
(87%)
forui/test/golden/text_field/error-zinc-light-unfocused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-1.22 KB
(87%)
forui/test/golden/text_field/error-zinc-light-unfocused-text.png
Oops, something went wrong.
Binary file modified
BIN
-375 Bytes
(94%)
forui/test/golden/text_field/multiline-zinc-dark-focused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-11.6 KB
(69%)
forui/test/golden/text_field/multiline-zinc-dark-focused-text.png
Oops, something went wrong.
Binary file modified
BIN
-405 Bytes
(93%)
forui/test/golden/text_field/multiline-zinc-dark-unfocused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-11.6 KB
(69%)
forui/test/golden/text_field/multiline-zinc-dark-unfocused-text.png
Oops, something went wrong.
Binary file modified
BIN
-384 Bytes
(94%)
forui/test/golden/text_field/multiline-zinc-light-focused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-10.2 KB
(73%)
forui/test/golden/text_field/multiline-zinc-light-focused-text.png
Oops, something went wrong.
Binary file modified
BIN
-391 Bytes
(93%)
forui/test/golden/text_field/multiline-zinc-light-unfocused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-9.97 KB
(74%)
forui/test/golden/text_field/multiline-zinc-light-unfocused-text.png
Oops, something went wrong.
Binary file modified
BIN
-590 Bytes
(92%)
forui/test/golden/text_field/password-zinc-dark-focused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-393 Bytes
(94%)
forui/test/golden/text_field/password-zinc-dark-focused-text.png
Oops, something went wrong.
Binary file modified
BIN
-588 Bytes
(92%)
forui/test/golden/text_field/password-zinc-dark-unfocused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-391 Bytes
(94%)
forui/test/golden/text_field/password-zinc-dark-unfocused-text.png
Oops, something went wrong.
Binary file modified
BIN
-679 Bytes
(91%)
forui/test/golden/text_field/password-zinc-light-focused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-435 Bytes
(93%)
forui/test/golden/text_field/password-zinc-light-focused-text.png
Oops, something went wrong.
Binary file modified
BIN
-683 Bytes
(91%)
forui/test/golden/text_field/password-zinc-light-unfocused-no-text.png
Oops, something went wrong.
Binary file modified
BIN
-342 Bytes
(94%)
forui/test/golden/text_field/password-zinc-light-unfocused-text.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
@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('FTabs', () { | ||
for (final (name, theme, _) in TestScaffold.themes) { | ||
testWidgets('default - $name', (tester) async { | ||
await tester.pumpWidget( | ||
MaterialApp( | ||
home: TestScaffold( | ||
data: theme, | ||
child: Column( | ||
mainAxisSize: MainAxisSize.min, | ||
children: [ | ||
Expanded( | ||
child: FTabs( | ||
tabs: [ | ||
FTabEntry( | ||
label: 'Account', | ||
content: FCard( | ||
title: 'Account', | ||
subtitle: 'Make changes to your account here. Click save when you are done.', | ||
child: Column( | ||
children: [ | ||
Container( | ||
color: Colors.blue, | ||
height: 100, | ||
), | ||
], | ||
), | ||
), | ||
), | ||
FTabEntry( | ||
label: 'Password', | ||
content: FCard( | ||
title: 'Password', | ||
subtitle: 'Change your password here. After saving, you will be logged out.', | ||
child: Column( | ||
children: [ | ||
Container( | ||
color: Colors.red, | ||
height: 100, | ||
) | ||
], | ||
), | ||
), | ||
), | ||
], | ||
), | ||
) | ||
], | ||
), | ||
), | ||
), | ||
); | ||
|
||
await expectLater( | ||
find.byType(TestScaffold), | ||
matchesGoldenFile('tabs/$name-tab.png'), | ||
); | ||
}); | ||
} | ||
}); | ||
} |
Oops, something went wrong.