-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
4804754
commit 12e9425
Showing
15 changed files
with
536 additions
and
239 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 |
---|---|---|
|
@@ -54,4 +54,5 @@ unlinked.ds | |
unlinked_spec.ds | ||
|
||
# FVM Version Cache | ||
.fvm/ | ||
.fvm/ | ||
.vscode/launch.json |
This file was deleted.
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 |
---|---|---|
|
@@ -41,3 +41,5 @@ app.*.map.json | |
/android/app/debug | ||
/android/app/profile | ||
/android/app/release | ||
|
||
macos/ |
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,65 @@ | ||
import 'package:cave/cave.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook; | ||
|
||
List<String> locations = [ | ||
"Exhibition Room", | ||
"Room 1", | ||
"Room 2", | ||
"Room 3", | ||
"Hallway", | ||
"Toilet", | ||
"Stairway", | ||
"Room 4", | ||
]; | ||
|
||
@widgetbook.UseCase( | ||
name: 'DevFest Dropdown', | ||
type: DevfestDropDown, | ||
designLink: | ||
"https://www.figma.com/design/CMEZj7OPDW09hOuTg1tAgF/DevFest-Lagos-'24---Mobile-App.?node-id=5457-8141&node-type=FRAME&t=13HTMdJAt4XcDqvU-0", | ||
) | ||
Widget devfestDropdown(BuildContext context) { | ||
String? currentLocation; | ||
String? destination; | ||
return StatefulBuilder(builder: (context, setState) { | ||
return Scaffold( | ||
backgroundColor: DevfestTheme.of(context).backgroundColor, | ||
body: Center( | ||
child: Padding( | ||
padding: const EdgeInsets.symmetric(horizontal: 16.0), | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: [ | ||
DevfestDropDown<String>( | ||
items: locations, | ||
selectedItem: currentLocation, | ||
onChanged: (value) { | ||
currentLocation = value; | ||
setState(() {}); | ||
}, | ||
title: 'Where are you in Landmark?', | ||
hint: 'Current location', | ||
prefixIcon: const Icon(IconsaxOutline.location), | ||
suffixIcon: const Icon(IconsaxOutline.arrow_down_1), | ||
), | ||
const SizedBox(height: 16), | ||
DevfestDropDown<String>( | ||
items: locations, | ||
selectedItem: destination, | ||
onChanged: (value) { | ||
destination = value; | ||
setState(() {}); | ||
}, | ||
title: 'Where are you headed?', | ||
hint: 'Desired destination', | ||
prefixIcon: const Icon(IconsaxOutline.location_tick), | ||
suffixIcon: const Icon(IconsaxOutline.arrow_down_1), | ||
), | ||
], | ||
), | ||
), | ||
), | ||
); | ||
}); | ||
} |
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
Oops, something went wrong.