mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-08-17 10:36:41 +00:00
11 lines
345 B
Dart
11 lines
345 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:lightmeter/navigation/routes.dart';
|
|
import 'package:lightmeter/utils/context_utils.dart';
|
|
|
|
void guardProTap(BuildContext context, VoidCallback callback) {
|
|
if (context.isPro) {
|
|
callback();
|
|
} else {
|
|
Navigator.of(context).pushNamed(NavigationRoutes.proFeaturesScreen.name);
|
|
}
|
|
}
|