finished new badge thingie
This commit is contained in:
parent
369c6e0110
commit
866b82f971
@ -70,6 +70,17 @@ class MenuGradeExporting extends StatelessWidget {
|
|||||||
// onPressed: () {
|
// onPressed: () {
|
||||||
// Navigator.of(context).pop();
|
// Navigator.of(context).pop();
|
||||||
|
|
||||||
|
Provider.of<SettingsProvider>(context, listen: false).update(
|
||||||
|
unseenNewFeatures: List.from(
|
||||||
|
Provider.of<SettingsProvider>(context, listen: false)
|
||||||
|
.unseenNewFeatures
|
||||||
|
..remove('grade_exporting'),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
// Provider.of<SettingsProvider>(context, listen: false).update(
|
||||||
|
// unseenNewFeatures: ['grade_exporting'],
|
||||||
|
// );
|
||||||
|
|
||||||
if (!Provider.of<PlusProvider>(context, listen: false)
|
if (!Provider.of<PlusProvider>(context, listen: false)
|
||||||
.hasScope(PremiumScopes.gradeExporting)) {
|
.hasScope(PremiumScopes.gradeExporting)) {
|
||||||
return PlusLockedFeaturePopup.show(
|
return PlusLockedFeaturePopup.show(
|
||||||
@ -98,6 +109,9 @@ class MenuGradeExporting extends StatelessWidget {
|
|||||||
trailing: Row(
|
trailing: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
|
if (Provider.of<SettingsProvider>(context)
|
||||||
|
.unseenNewFeatures
|
||||||
|
.contains('grade_exporting'))
|
||||||
const NewChip(),
|
const NewChip(),
|
||||||
Icon(
|
Icon(
|
||||||
FeatherIcons.chevronRight,
|
FeatherIcons.chevronRight,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user