enhanced route transition gate because of a syncfusion viewer bug
This commit is contained in:
1 parent
b9cb1df473
commit
39c16bd4ea
3 files changed
+134
-24
No files matched your search
@@ -5,8 +5,9 @@ import 'package:syncfusion_flutter_pdfviewer/pdfviewer.dart';
|
||||
|
||||
import '../route_transition_gate.dart';
|
||||
|
||||
/// SfPdfViewer asserts on `localToGlobal` if mounted during the page-push
|
||||
/// animation. Defer until the route enter animation completes.
|
||||
/// SfPdfViewer asserts on `localToGlobal` if laid out while a route
|
||||
/// transition's fresh `RenderTransform` has no size yet. Mount it only while
|
||||
/// the route is at rest (see [RouteTransitionGate]).
|
||||
class DeferredPdfViewer extends StatelessWidget {
|
||||
const DeferredPdfViewer({super.key, required this.path});
|
||||
final String path;
|
||||
|
||||
Reference in new issue
Block a user