polish: strip verbose comments, simplify codebase
This commit is contained in:
1 parent
a32252c56d
commit
35bfeb61c4
16 files changed
+26
-147
No files matched your search
@@ -4,17 +4,9 @@ import 'package:google_mobile_ads/google_mobile_ads.dart';
|
||||
import 'package:revoltvpn/logic/app_colors.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
/// GdprButton lets the user review or change their ad consent choices.
|
||||
///
|
||||
/// When tapped, it tries to show Google's UMP consent form so the user
|
||||
/// can adjust their preferences (personalized vs non-personalized ads).
|
||||
/// If the form isn't available (e.g. user is outside the EEA), it falls
|
||||
/// back to opening the privacy policy instead.
|
||||
class GdprButton extends StatelessWidget {
|
||||
const GdprButton({super.key});
|
||||
|
||||
/// Public entry point so the sidebar (or any other widget) can trigger
|
||||
/// the consent flow without embedding an IconButton.
|
||||
static Future<void> showConsentForm() async {
|
||||
try {
|
||||
// If the form is already available, show it directly — no need to
|
||||
|
||||
Reference in new issue
Block a user