enhanced route transition gate because of a syncfusion viewer bug

This commit is contained in:
2026-08-08 22:13:19 +02:00
parent b9cb1df473
commit 39c16bd4ea
3 changed files with 134 additions and 24 deletions
@@ -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;