-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Created list item variants (#98)
* list item * making zeta list * radio button fixes, widgetbook * lint fix * docs
- Loading branch information
1 parent
bd10aec
commit 3a0b4a0
Showing
9 changed files
with
432 additions
and
347 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:zeta_example/widgets.dart'; | ||
import 'package:zeta_flutter/zeta_flutter.dart'; | ||
|
||
class ListExample extends StatelessWidget { | ||
static const name = 'List'; | ||
|
||
const ListExample({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ExampleScaffold( | ||
name: 'List', | ||
child: ZetaList( | ||
showDivider: false, | ||
items: [ | ||
ZetaListItem(primaryText: 'Item 1'), | ||
ZetaListItem(primaryText: 'Item 2'), | ||
ZetaListItem(primaryText: 'Item 3', showDivider: true), | ||
ZetaListItem(primaryText: 'Item 4', showDivider: true), | ||
ZetaListItem(primaryText: 'Item 5'), | ||
ZetaListItem(primaryText: 'Item 6'), | ||
], | ||
), | ||
); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -30,4 +30,3 @@ flutter: | |
uses-material-design: true | ||
assets: | ||
- assets/ | ||
- ../README.md |
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.