0

I am using the package to show the pdf but the loading part of the pdf is in Chinese and is not customizable so I want to show a widget over a widget when the loading part is in progress I want to show my own loading dialog for half of the second over that loading bar package that i am using can someone help please my code

 body: Column(
    children: <Widget>[
      Expanded(child: FileView(controller: widget.controller)),
    ],
  ),

widget.controller is the getting path of pdf

1

1 Answer 1

1

Use 2 Visibility Widgets inside a Stack and toggle the Visibility based on the requirement

Stack
|_Visiblity
 |_ Loading Widget    👈 set visible to false once loading
|_Visibility
 |_ Pdf Widget         👈 set visible to true once loading

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.