-
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.
* Fix padding * Commit from GitHub Actions (Forui Presubmit) * Update golden tests * Update CHANGELOG.md
- Loading branch information
Showing
17 changed files
with
123 additions
and
154 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,28 +25,23 @@ Creates a visual scaffold for Forui widgets. | |
FCard( | ||
title: const Text('Account'), | ||
subtitle: const Text('Make changes to your account here. Click save when you are done.'), | ||
child: Padding( | ||
padding: const EdgeInsets.only(top: 10), | ||
child: Column( | ||
children: [ | ||
const FTextField( | ||
label: Text('Name'), | ||
hint: 'John Renalo', | ||
), | ||
const SizedBox(height: 10), | ||
const FTextField( | ||
label: Text('Email'), | ||
hint: '[email protected]', | ||
), | ||
Padding( | ||
padding: const EdgeInsets.only(top: 24, bottom: 16), | ||
child: FButton( | ||
label: const Text('Save'), | ||
onPress: () {}, | ||
), | ||
), | ||
], | ||
), | ||
child: Column( | ||
children: [ | ||
const FTextField( | ||
label: Text('Name'), | ||
hint: 'John Renalo', | ||
), | ||
const SizedBox(height: 10), | ||
const FTextField( | ||
label: Text('Email'), | ||
hint: '[email protected]', | ||
), | ||
const SizedBox(height: 16), | ||
FButton( | ||
label: const Text('Save'), | ||
onPress: () {}, | ||
), | ||
], | ||
), | ||
), | ||
], | ||
|
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 |
---|---|---|
|
@@ -10,66 +10,53 @@ A set of layered sections of content—known as tab entries—that are displayed | |
</Tabs.Tab> | ||
<Tabs.Tab> | ||
```dart | ||
Padding( | ||
padding: const EdgeInsets.all(16), | ||
child: FTabs( | ||
tabs: [ | ||
FTabEntry( | ||
label: const Text('Account'), | ||
content: FCard( | ||
title: const Text('Account'), | ||
subtitle: const Text('Make changes to your account here. Click save when you are done.'), | ||
child: Padding( | ||
padding: const EdgeInsets.only(top: 12), | ||
child: Column( | ||
children: [ | ||
const FTextField( | ||
label: Text('Name'), | ||
hint: 'John Renalo', | ||
), | ||
const SizedBox(height: 10), | ||
const FTextField( | ||
label: Text('Email'), | ||
hint: '[email protected]', | ||
), | ||
Padding( | ||
padding: const EdgeInsets.only(top: 24, bottom: 16), | ||
child: FButton( | ||
label: const Text('Save'), | ||
onPress: () {}, | ||
), | ||
), | ||
], | ||
FTabs( | ||
tabs: [ | ||
FTabEntry( | ||
label: const Text('Account'), | ||
content: FCard( | ||
title: const Text('Account'), | ||
subtitle: const Text('Make changes to your account here. Click save when you are done.'), | ||
child: Column( | ||
children: [ | ||
const FTextField( | ||
label: Text('Name'), | ||
hint: 'John Renalo', | ||
), | ||
), | ||
const SizedBox(height: 10), | ||
const FTextField( | ||
label: Text('Email'), | ||
hint: '[email protected]', | ||
), | ||
const SizedBox(height: 16), | ||
FButton( | ||
label: const Text('Save'), | ||
onPress: () {}, | ||
), | ||
], | ||
), | ||
), | ||
FTabEntry( | ||
label: const Text(Password'), | ||
content: FCard( | ||
title: const Text('Password'), | ||
subtitle: const Text('Change your password here. After saving, you will be logged out.'), | ||
child: Padding( | ||
padding: const EdgeInsets.only(top: 12), | ||
child: Column( | ||
children: [ | ||
const FTextField(label: Text('Current password')), | ||
const SizedBox(height: 10), | ||
const FTextField(label: Text('New password')), | ||
Padding( | ||
padding: const EdgeInsets.only(top: 24, bottom: 16), | ||
child: FButton( | ||
label: const Text('Save'), | ||
onPress: () {}, | ||
), | ||
), | ||
], | ||
), | ||
FTabEntry( | ||
label: const Text('Password'), | ||
content: FCard( | ||
title: const Text('Password'), | ||
subtitle: const Text('Change your password here. After saving, you will be logged out.'), | ||
child: Column( | ||
children: [ | ||
const FTextField(label: Text('Current password')), | ||
const SizedBox(height: 10), | ||
const FTextField(label: Text('New password')), | ||
const SizedBox(height: 16), | ||
FButton( | ||
label: const Text('Save'), | ||
onPress: () {}, | ||
), | ||
), | ||
], | ||
), | ||
), | ||
], | ||
), | ||
), | ||
], | ||
); | ||
``` | ||
</Tabs.Tab> | ||
|
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.
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
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 modified
BIN
-5 Bytes
(100%)
forui/test/golden/dialog/zinc-dark-Axis.horizontal-content-dialog.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
-8 Bytes
(100%)
forui/test/golden/dialog/zinc-dark-Axis.vertical-content-dialog.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
-7 Bytes
(100%)
forui/test/golden/dialog/zinc-light-Axis.horizontal-content-dialog.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
-7 Bytes
(100%)
forui/test/golden/dialog/zinc-light-Axis.vertical-content-dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -34,28 +34,23 @@ class ScaffoldPage extends SampleScaffold { | |
FCard( | ||
title: const Text('Account'), | ||
subtitle: const Text('Make changes to your account here. Click save when you are done.'), | ||
child: Padding( | ||
padding: const EdgeInsets.only(top: 10), | ||
child: Column( | ||
children: [ | ||
const FTextField( | ||
label: Text('Name'), | ||
hint: 'John Renalo', | ||
), | ||
const SizedBox(height: 10), | ||
const FTextField( | ||
label: Text('Email'), | ||
hint: '[email protected]', | ||
), | ||
Padding( | ||
padding: const EdgeInsets.only(top: 24, bottom: 16), | ||
child: FButton( | ||
label: const Text('Save'), | ||
onPress: () {}, | ||
), | ||
), | ||
], | ||
), | ||
child: Column( | ||
children: [ | ||
const FTextField( | ||
label: Text('Name'), | ||
hint: 'John Renalo', | ||
), | ||
const SizedBox(height: 10), | ||
const FTextField( | ||
label: Text('Email'), | ||
hint: '[email protected]', | ||
), | ||
const SizedBox(height: 16), | ||
FButton( | ||
label: const Text('Save'), | ||
onPress: () {}, | ||
), | ||
], | ||
), | ||
), | ||
], | ||
|
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 |
---|---|---|
|
@@ -24,28 +24,23 @@ class TabsPage extends SampleScaffold { | |
content: FCard( | ||
title: const Text('Account'), | ||
subtitle: const Text('Make changes to your account here. Click save when you are done.'), | ||
child: Padding( | ||
padding: const EdgeInsets.only(top: 10), | ||
child: Column( | ||
children: [ | ||
const FTextField( | ||
label: Text('Name'), | ||
hint: 'John Renalo', | ||
), | ||
const SizedBox(height: 10), | ||
const FTextField( | ||
label: Text('Email'), | ||
hint: '[email protected]', | ||
), | ||
Padding( | ||
padding: const EdgeInsets.only(top: 24, bottom: 16), | ||
child: FButton( | ||
label: const Text('Save'), | ||
onPress: () {}, | ||
), | ||
), | ||
], | ||
), | ||
child: Column( | ||
children: [ | ||
const FTextField( | ||
label: Text('Name'), | ||
hint: 'John Renalo', | ||
), | ||
const SizedBox(height: 10), | ||
const FTextField( | ||
label: Text('Email'), | ||
hint: '[email protected]', | ||
), | ||
const SizedBox(height: 16), | ||
FButton( | ||
label: const Text('Save'), | ||
onPress: () {}, | ||
), | ||
], | ||
), | ||
), | ||
), | ||
|
@@ -54,22 +49,17 @@ class TabsPage extends SampleScaffold { | |
content: FCard( | ||
title: const Text('Password'), | ||
subtitle: const Text('Change your password here. After saving, you will be logged out.'), | ||
child: Padding( | ||
padding: const EdgeInsets.only(top: 10), | ||
child: Column( | ||
children: [ | ||
const FTextField(label: Text('Current password')), | ||
const SizedBox(height: 10), | ||
const FTextField(label: Text('New password')), | ||
Padding( | ||
padding: const EdgeInsets.only(top: 24, bottom: 16), | ||
child: FButton( | ||
label: const Text('Save'), | ||
onPress: () {}, | ||
), | ||
), | ||
], | ||
), | ||
child: Column( | ||
children: [ | ||
const FTextField(label: Text('Current password')), | ||
const SizedBox(height: 10), | ||
const FTextField(label: Text('New password')), | ||
const SizedBox(height: 16), | ||
FButton( | ||
label: const Text('Save'), | ||
onPress: () {}, | ||
), | ||
], | ||
), | ||
), | ||
), | ||
|