Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null check operator used on a null value #83

Open
mohamedshasho opened this issue Oct 15, 2024 · 0 comments
Open

Null check operator used on a null value #83

mohamedshasho opened this issue Oct 15, 2024 · 0 comments

Comments

@mohamedshasho
Copy link

mohamedshasho commented Oct 15, 2024

Hello, This issue was reported via Crashlytics

`  Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Null check operator used on a null value
   at State.context(framework.dart:958)
   at _JustTheTooltipOverlayState._createNewEntries(just_the_tooltip.dart:197)
   at _JustTheTooltipOverlayState.ensureTooltipVisible(just_the_tooltip.dart:176)
  at JustTheTooltipState._showTooltip.<fn>(just_the_tooltip.dart:508)
`


- > final tooltipController = JustTheController();
- > tooltipController.showTooltip(autoClose: true);
- > 
- > JustTheTooltip(
- >           controller: controller.tooltipController,
- >           tailBaseWidth: 15,
- >           showDuration: const Duration(seconds: 3),
- >           triggerMode: TooltipTriggerMode.manual,
- >           backgroundColor: tertiaryColor,
- >           elevation: 2,
- >           borderRadius: const BorderRadius.all(Radius.circular(20)),
- >           content: DefaultContainer(
- >             padding: const EdgeInsets.all(10.0),
- >             radius: 10,
- >             gradient: LinearGradient(
- >               colors: [
- >                 tertiaryColor,
- >                 primaryColor,
- >               ],
- >               begin: Alignment.topCenter,
- >               end: Alignment.bottomCenter,
- >             ),
- >             child: Text(
- >               LocaleKeys.item_added_to_cart.tr,
- >               style: Theme.of(context).textTheme.bodySmall,
- >             ),
- >           ),
- >           child: IconButton(
- >             onPressed: () => Get.toNamed(Routes.cart),
- >             icon: Obx(
- >               () => badges.Badge(
- >                 showBadge: controller.cartCount > 0,
- >                 badgeContent: Text(controller.cartCount.toString()),
- >                 position: badges.BadgePosition.bottomEnd(),
- >                 badgeStyle: badges.BadgeStyle(
- >                   badgeColor: secondaryColor,
- >                   elevation: 0,
- >                 ),
- >                 child: SvgPicture.asset("assets/icons/cart.svg"),
- >               ),
- >             ),
- >           ),
- >         ),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant