binSaed / flutter_cached_pdfview

Enhanced PDF view for Flutter.
https://pub.dev/packages/flutter_cached_pdfview
MIT License
121 stars 70 forks source link

Progress on Placeholder not working #84

Closed taftazaniadi closed 2 years ago

taftazaniadi commented 2 years ago

Progress on placeholder PDF().fromUrl not working..

Anyone can help me?

devahmedh commented 2 years ago

Same here

binSaed commented 2 years ago
import 'package:flutter/material.dart';
import 'package:flutter_cached_pdfview/flutter_cached_pdfview.dart';

void main() {
  runApp(
    MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: const PDF().fromUrl(
          'https://www.entnet.org/wp-content/uploads/2021/04/Instructions-for-Adding-Your-Logo-2.pdf',
          placeholder: (double progress) => Center(child: Text('$progress %')),
          errorWidget: (dynamic error) => Center(child: Text(error.toString())),
        ),
      ),
    ),
  );
}

https://user-images.githubusercontent.com/33700292/180056898-26a1e933-26b0-4b65-9231-7bb0f612f014.mov

binSaed commented 2 years ago

@taftazaniadi @Ahmed-Hussein-DevOpSolution

working perfectly please try with larger file

velotzy commented 12 months ago

@taftazaniadi @Ahmed-Hussein-DevOpSolution

working perfectly please try with larger file

so it doesn't work on small file size?