-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#706): add phenoconversion FAQ item
- Loading branch information
Showing
5 changed files
with
102 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import '../module.dart'; | ||
|
||
// Based on https://stackoverflow.com/a/62341566 | ||
|
||
class UnorderedList extends StatelessWidget { | ||
const UnorderedList(this.texts); | ||
final List<String> texts; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final widgetList = <Widget>[]; | ||
for (final text in texts) { | ||
widgetList.add(UnorderedListItem(text)); | ||
widgetList.add(SizedBox(height: 5)); | ||
} | ||
return Column(children: widgetList); | ||
} | ||
} | ||
|
||
class UnorderedListItem extends StatelessWidget { | ||
const UnorderedListItem(this.text); | ||
final String text; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Row( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: <Widget>[ | ||
Text('• '), | ||
Expanded( | ||
child: Text(text), | ||
), | ||
], | ||
); | ||
} | ||
} |
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