hnvn / flutter_image_cropper

A Flutter plugin for Android and iOS supports cropping images
969 stars 375 forks source link

Plugin should not use `FLT` as its Objective-C prefix #449

Open stuartmorgan opened 7 months ago

stuartmorgan commented 7 months ago

Currently this plugin is using the FLT prefix for its Objective-C class (FLTImageCropperPlugin). The purpose of Obj-C prefixing is to avoid naming collisions, which cause undefined behavior at runtime, so the prefix is supposed to be something unlikely to be used by others. However, FLT is used by the Flutter team, which means using FLT here maximizes the chance of collisions, rather than minimizing them, since developers using this plugin are very likely to have Flutter-team-authored Obj-C code in their app as well.

Please change to something specific to this plugin rather than FLT.