-
Notifications
You must be signed in to change notification settings - Fork 14
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
Kolya Paradiuk
authored and
Kolya Paradiuk
committed
Jan 9, 2024
1 parent
b84a3fb
commit 3e2101c
Showing
7 changed files
with
105 additions
and
66 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:moon_design/moon_design.dart'; | ||
|
||
class Breadcrumb extends StatelessWidget { | ||
const Breadcrumb({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return MoonBreadcrumb( | ||
itemTextStyle: context.moonTypography?.caption.text18, | ||
currentItemTextStyle: context.moonTypography?.heading.text20, | ||
textColor: context.moonColors?.trunks, | ||
hoverTextColor: context.moonColors?.bulma, | ||
divider: const Icon( | ||
Icons.chevron_right, | ||
size: 24, | ||
), | ||
items: [ | ||
BreadcrumbItem( | ||
leading: const Icon(MoonIcons.generic_home_16_light), | ||
label: const Text('Home'), | ||
onPressed: () {}, | ||
), | ||
BreadcrumbItem( | ||
label: const Text('Page 1'), | ||
onPressed: () {}, | ||
), | ||
BreadcrumbItem( | ||
label: const Text('Page 2'), | ||
onPressed: () {}, | ||
), | ||
], | ||
); | ||
} | ||
} |
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