testing if just the presense of showModalBottomSheet causes the app to freezer
This commit is contained in:
parent
60695c5907
commit
8f474e34bf
1 changed files with 12 additions and 12 deletions
|
|
@ -13,7 +13,6 @@ import 'package:fluffychat/pangea/network/requests.dart';
|
|||
import 'package:fluffychat/pangea/network/urls.dart';
|
||||
import 'package:fluffychat/pangea/utils/error_handler.dart';
|
||||
import 'package:fluffychat/pangea/utils/firebase_analytics.dart';
|
||||
import 'package:fluffychat/pangea/widgets/subscription/subscription_paywall.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
|
@ -149,21 +148,22 @@ class SubscriptionController extends BaseController {
|
|||
await showModalBottomSheet(
|
||||
// isScrollControlled: true,
|
||||
// useRootNavigator: !PlatformInfos.isMobile,
|
||||
clipBehavior: Clip.hardEdge,
|
||||
// clipBehavior: Clip.hardEdge,
|
||||
context: context,
|
||||
// constraints: const BoxConstraints(
|
||||
// maxHeight: 600,
|
||||
// ),
|
||||
builder: (_) {
|
||||
try {
|
||||
return SubscriptionPaywall(
|
||||
pangeaController: _pangeaController,
|
||||
);
|
||||
} catch (err) {
|
||||
print("error build modal bottom sheet: $err");
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
},
|
||||
// builder: (_) {
|
||||
// try {
|
||||
// return SubscriptionPaywall(
|
||||
// pangeaController: _pangeaController,
|
||||
// );
|
||||
// } catch (err) {
|
||||
// print("error build modal bottom sheet: $err");
|
||||
// return const SizedBox.shrink();
|
||||
// }
|
||||
// },
|
||||
builder: (_) => const SizedBox.shrink(),
|
||||
);
|
||||
} catch (e, s) {
|
||||
ErrorHandler.logError(e: e, s: s);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue