Skip to content

Commit

Permalink
Removed dialog from RC legacy example (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijunaid authored Oct 31, 2023
1 parent da2a0fc commit 3402066
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions example/lib/page_remote_config_legacy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,12 @@ import 'package:flutter/material.dart';
final navigatorKey = GlobalKey<NavigatorState>();

class RemoteConfigPageLegacy extends StatelessWidget {
void _showDialog(String alertText) {
showDialog(
context: navigatorKey.currentContext!,
builder: (BuildContext context) {
return AlertDialog(
title: const Text('Alert!!'),
content: Text(alertText),
actions: <Widget>[
ElevatedButton(
child: const Text('OK'),
onPressed: () {
Navigator.of(navigatorKey.currentContext!).pop();
},
),
],
);
},
);
}

@deprecated
void getABTestingValues() {
Countly.remoteConfigUpdate((result) {
Countly.getRemoteConfigValueForKey('baloon', (result) {
String alertText = "Value for 'baloon' is : ${result.toString()}";
_showDialog(alertText);
print(alertText);
});
});
Expand Down

0 comments on commit 3402066

Please sign in to comment.