Skip to content

Scale type

Lucas Yuji edited this page Nov 3, 2022 · 2 revisions

if you want to use Scaletype, there are some options:

  • FitStart
  • FitCenter
  • FitEnd
  • FillStart
  • FillCenter
  • FillEnd

To use scale type, follow the below example:

CameraPreview(
  scaleType = ScaleType.FitStart // default is ScaleType.FillCenter
)