ajilo297 / Flutter-Dotted-Border

A Flutter package to easily add dashed borders around widgets
https://pub.dev/packages/dotted_border
MIT License
295 stars 63 forks source link

Canvas memory exceeded in Safari's iOS #42

Open DanEscamilla opened 3 months ago

DanEscamilla commented 3 months ago

Describe the bug Having many dotted borders drawn at once can cause issues in iOS devices with large screens when rendered to web platform.

To Reproduce Steps to reproduce the behavior:

  1. render 20+ dotted borders in and an iOS device with a large resolution (Happened in Ipad 10th gen originally)

Expected behavior The widgets render correctly.

Screenshots

Screenshot 2024-06-12 at 14 42 05 Screenshot 2024-06-12 at 14 42 17

Smartphone (please complete the following information):

Additional context It appears to create a canvas of the entire screen size for each widget which takes up too much memory on large resolution devices, which causes the total canvas memory to be exceeded