Skip to content

Migration to 2.0.0

Maël edited this page Nov 28, 2022 · 2 revisions

The easier is to check the example app to see how to uses the various components.

Here is the list of breaking changes that occurs between 1.5.2 and 2.0.0

Controller

  • new isRotated getter
  • isTrimmmed is renamed isTrimmed

Widgets

TrimSlider

  • new maxViewportRatio and hasHaptic params

CoverSelection

  • new wrap and selectedCoverBuilder params
  • height replaced by size

TrimTimeline

  • new localSeconds and textStyle params
  • secondGap param removed and new quantity param instead
  • margin parameter replaced by padding

CropGridViewer

no more CropGridViewer constructor, prefer using instead either

  • CropGridViewer.preview (showGrid set to false)
  • CropGridViewer.edit (showGrid set to true)
    • horizontalMargin replaced by margin

Style

CropStyle

  • new selectedBoundariesColor param

TrimSliderStyle

  • new onTrimmingColor, onTrimmedColor, borderRadius and edgesSize params
  • circleSize replaced by edgesSize

CoverSelectionStyle

  • new borderRadius param
  • selectedBorderWidth replaced by borderWidth
  • selectedIndicator parameter is removed, prefer uses CoverSelection selectedIndicator builder instead