-
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
11 changed files
with
197 additions
and
159 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
NEXT_PUBLIC_DEMO_URL=https://demo.forui.dev | ||
NEXT_PUBLIC_DEMO_URL=http://localhost:59874 |
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
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
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 |
---|---|---|
|
@@ -12,46 +12,56 @@ class ScaffoldPage extends SampleScaffold { | |
}); | ||
|
||
@override | ||
Widget child(BuildContext context) => FScaffold( | ||
header: FHeader( | ||
title: 'Settings', | ||
actions: [ | ||
FHeaderAction( | ||
icon: FAssets.icons.ellipsis, | ||
onPress: () {}, | ||
), | ||
], | ||
), | ||
content: ListView( | ||
children: [ | ||
FCard( | ||
title: 'Account', | ||
subtitle: '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: 'Name', | ||
hint: 'John Renalo', | ||
), | ||
const SizedBox(height: 10), | ||
const FTextField( | ||
label: 'Email', | ||
hint: '[email protected]', | ||
), | ||
Padding( | ||
padding: const EdgeInsets.only(top: 24, bottom: 16), | ||
child: FButton( | ||
label: 'Save', | ||
onPress: () {}, | ||
Widget child(BuildContext context) => Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
const SizedBox(height: 30), | ||
SizedBox( | ||
height: 420, | ||
child: FScaffold( | ||
header: FHeader( | ||
title: 'Settings', | ||
actions: [ | ||
FHeaderAction( | ||
icon: FAssets.icons.ellipsis, | ||
onPress: () {}, | ||
), | ||
], | ||
), | ||
content: Column( | ||
children: [ | ||
const SizedBox(height: 5), | ||
FCard( | ||
title: 'Account', | ||
subtitle: '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: 'Name', | ||
hint: 'John Renalo', | ||
), | ||
const SizedBox(height: 10), | ||
const FTextField( | ||
label: 'Email', | ||
hint: '[email protected]', | ||
), | ||
Padding( | ||
padding: const EdgeInsets.only(top: 24, bottom: 16), | ||
child: FButton( | ||
label: '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
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 |
---|---|---|
|
@@ -12,65 +12,70 @@ class TabsPage extends SampleScaffold { | |
}); | ||
|
||
@override | ||
Widget child(BuildContext context) => Padding( | ||
padding: const EdgeInsets.all(16), | ||
child: FTabs( | ||
tabs: [ | ||
FTabEntry( | ||
label: 'Account', | ||
content: FCard( | ||
title: 'Account', | ||
subtitle: '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: 'Name', | ||
hint: 'John Renalo', | ||
Widget child(BuildContext context) => Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
Padding( | ||
padding: const EdgeInsets.all(16), | ||
child: FTabs( | ||
tabs: [ | ||
FTabEntry( | ||
label: 'Account', | ||
content: FCard( | ||
title: 'Account', | ||
subtitle: '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: 'Name', | ||
hint: 'John Renalo', | ||
), | ||
const SizedBox(height: 10), | ||
const FTextField( | ||
label: 'Email', | ||
hint: '[email protected]', | ||
), | ||
Padding( | ||
padding: const EdgeInsets.only(top: 24, bottom: 16), | ||
child: FButton( | ||
label: 'Save', | ||
onPress: () {}, | ||
), | ||
), | ||
], | ||
), | ||
const SizedBox(height: 10), | ||
const FTextField( | ||
label: 'Email', | ||
hint: '[email protected]', | ||
), | ||
Padding( | ||
padding: const EdgeInsets.only(top: 24, bottom: 16), | ||
child: FButton( | ||
label: 'Save', | ||
onPress: () {}, | ||
), | ||
), | ||
], | ||
), | ||
), | ||
), | ||
), | ||
), | ||
FTabEntry( | ||
label: 'Password', | ||
content: FCard( | ||
title: 'Password', | ||
subtitle: '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: 'Current password'), | ||
const SizedBox(height: 10), | ||
const FTextField(label: 'New password'), | ||
Padding( | ||
padding: const EdgeInsets.only(top: 24, bottom: 16), | ||
child: FButton( | ||
label: 'Save', | ||
onPress: () {}, | ||
), | ||
FTabEntry( | ||
label: 'Password', | ||
content: FCard( | ||
title: 'Password', | ||
subtitle: '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: 'Current password'), | ||
const SizedBox(height: 10), | ||
const FTextField(label: 'New password'), | ||
Padding( | ||
padding: const EdgeInsets.only(top: 24, bottom: 16), | ||
child: FButton( | ||
label: 'Save', | ||
onPress: () {}, | ||
), | ||
), | ||
], | ||
), | ||
], | ||
), | ||
), | ||
), | ||
), | ||
], | ||
), | ||
], | ||
), | ||
), | ||
], | ||
); | ||
} |
Oops, something went wrong.