Milad-Akarie / pretty_dio_logger

MIT License
221 stars 49 forks source link

Added Uint8List printing #26

Closed cgutierr-zgz closed 1 year ago

cgutierr-zgz commented 2 years ago

Description

As mentioned in Compacting ResponseType.bytes ? #25

When I receive an Uint8List, PrettyDioLogger prints each element of the list on a single line, which in my opinion for a Uint8List is not really useful since you'll usually get about 10k lines being printed, and the app will slow down until that stops.

Example of what I mean:

Screenshot 2022-06-21 at 09 46 38

With this PR I just wanted to compact the response a little bit, chunkSize was set to 20 after some testing.

Screenshot 2022-06-21 at 09 50 11

Also fixed the List printing [ both at the start, and at the end of the list, instead of ]

Type of Change

Milad-Akarie commented 1 year ago

done manually, because there were conflicts, Thanks for the effort.