Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Exception caught by gestures library #166812

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

Closed
swami-manickam opened this issue Apr 9, 2025 · 2 comments
Closed

Exception caught by gestures library #166812

swami-manickam opened this issue Apr 9, 2025 · 2 comments
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds

Comments

@swami-manickam
Copy link

swami-manickam commented Apr 9, 2025

Hi,

I am facing below issue when i try the flutter app it was working fine till yesterday suddenly i am getting below error.

RenderBox was not laid out: RenderRepaintBoundary#8966e NEEDS-PAINT
'package:flutter/src/rendering/box.dart':
Failed assertion: line 2164 pos 12: 'hasSize'


Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.yml

The relevant error-causing widget was: 
  SafeArea SafeArea:
@override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: CustomAppBarWidget(
        title: 'add_shop_details'.tr,
        bgColor: primaryColor,
        headerColor: whiteColor,
      ),
      body: Stack(
        fit: StackFit.expand,
        // Ensures that the Stack takes up the full available space
        children: [
          SafeArea(
            child: Scrollbar(
              child: SingleChildScrollView(
                physics: const BouncingScrollPhysics(),
                padding: const EdgeInsets.all(Dimensions.paddingSizeSmall),
                child: SizedBox(
                    width: 1170, // Adjust width of the content
                    child: BlocConsumer<BusinessInfoBloc, BusinessInfoState>(
                      listener: (context, state) {
                        if (state is BusinessInfoFailure) {
                          Future.delayed(Duration.zero, () {
                            showCustomSnackBar(state.message, isError: true);
                          });
                        } else if (state is CarWashShopDetailsSuccess) {
                          AppPreference.setInt(PreferencesConstant.formProgress,
                              PreferencesConstant.stepFinancialDetails);
                          Get.offNamed(RouteHelper.addFinancialInfoCarWash);
                        }
                      },
                      builder: (context, state) {
                        return Column(
                          children: [
                            _buildCarWashBasicInfoWidget(),
                            if (state is BusinessInfoLoading) ...[
                              const SizedBox(height: 20),
                              //const CircularProgressIndicator(),
                            ],
                          ],
                        );
                      },
                    )),
              ),
            ),
          ),
        ],
      ),
    );
  }

Thank you

@darshankawar darshankawar added the in triage Presently being triaged by the triage team label Apr 9, 2025
@darshankawar
Copy link
Member

@swami-manickam
The code you shared contains custom and third party package implementation. In order to properly address the issue, we need a complete but minimal reproducible code sample without external implementation that still shows the reported error, so please provide the same.

https://stackoverflow.com/help/minimal-reproducible-example

@darshankawar darshankawar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Apr 9, 2025
Copy link

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now.
If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones.
Thanks for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in triage Presently being triaged by the triage team waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds
Projects
None yet
Development

No branches or pull requests

2 participants