dsc-uob / subtitle

Subtitle decoder package, enables you to handle translation data smoothly.
MIT License
6 stars 17 forks source link

Can not get the file when too long #7

Closed thecarry98 closed 1 year ago

thecarry98 commented 1 year ago

So use response.get cannot get the file if this is too long, but i just fix them. Current code:

final bytes = response.single;

New Code:

 final List<int> bytes = await response.toList().then(
          (value) => value.expand((list) => list).toList(),
        );
MuhmdHsn313 commented 1 year ago

Solved with #8, thanks @thecarry98