-
Notifications
You must be signed in to change notification settings - Fork 52
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
92d09da
commit 8c50468
Showing
9 changed files
with
124 additions
and
87 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 |
---|---|---|
@@ -1,20 +1,17 @@ | ||
import 'package:flutter/widgets.dart'; | ||
|
||
import '../../data.dart'; | ||
|
||
class MasterItem { | ||
MasterItem({ | ||
required this.titleBuilder, | ||
this.subtitleBuilder, | ||
required this.pageBuilder, | ||
this.iconBuilder, | ||
required this.content, | ||
required this.pageId, | ||
}); | ||
|
||
final WidgetBuilder titleBuilder; | ||
final WidgetBuilder? subtitleBuilder; | ||
final WidgetBuilder pageBuilder; | ||
final Widget Function(BuildContext context, bool selected)? iconBuilder; | ||
// TODO: lookup Set for pageID instead of copying it | ||
final (String, Set<Audio>) content; | ||
final String pageId; | ||
} |
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.