flutter_tex icon indicating copy to clipboard operation
flutter_tex copied to clipboard

TeXView adding extra bottom padding.

Open wrteam-priyansh opened this issue 2 years ago • 8 comments

TeXview adding extra bottom padding.

Here is the sample code

TeXView(

        onRenderFinished: (height) {
          widget.timerAnimationController.forward();
          print(height);
        },
        loadingWidgetBuilder: ((context) => Center(
            child: CircularProgressContainer(
                heightAndWidth: 40, useWhiteLoader: false))),
        child: TeXViewDocument(
          questionText,
        ),
        style: TeXViewStyle(
            contentColor: Theme.of(context).colorScheme.secondary,
            backgroundColor: Theme.of(context).backgroundColor,
            sizeUnit: TeXViewSizeUnit.pixels,
            textAlign: TeXViewTextAlign.center,
            fontStyle: TeXViewFontStyle(fontSize: textSize.toInt() + 5)),
      )
      
      
     
Screenshot 2022-04-22 at 5 45 18 PM

wrteam-priyansh avatar Apr 22 '22 12:04 wrteam-priyansh

in my case, I think it was because of IndexedStack in tex_view_mobile.dart. So I custom it to Stack

cikalT avatar Apr 25 '22 04:04 cikalT

This issue only occurs if i add loadingWidgetBuilder

wrteam-priyansh avatar Apr 25 '22 04:04 wrteam-priyansh

@cikalT I haven't use indexed stack

wrteam-priyansh avatar Apr 25 '22 04:04 wrteam-priyansh

@cikalT I haven't use indexed stack

it was added from default flutter_tex package. You can see it in the tex_view_mobile.dart file.

cikalT avatar Apr 25 '22 04:04 cikalT

@cikalT ok let me check that

wrteam-priyansh avatar Apr 25 '22 04:04 wrteam-priyansh

I'm having the same issue as well and I can't find the solution... Also, it seems that it's happening only when I close and reopen the app. but as soon as I setState again it gets normal(?!)

StroeAndreX avatar Jun 05 '22 11:06 StroeAndreX

Version: flutter_tex: ^4.0.3+1

When I used below part the padding occurred. loadingWidgetBuilder: (context) => Center( child: const CupertinoActivityIndicator(), ),

But after I commented it Problem gone. You may solve your problem with removing it temporarily

hcakil avatar Jun 24 '22 20:06 hcakil

Currently facing the same problem. In my case I am not even using loader widget it happens when I close and reopen the screen 😕

muhammadidrees avatar Jun 29 '22 14:06 muhammadidrees