The following changes have been made to the
AnimationSheetBuilder class:

‘display’ is deprecated and shouldn’t be used

‘sheetSize’ is deprecated and shouldn’t be used

Migration guide

To migrate to the new API, change the process of setting
surface size and displaying the widget into
AnimationSheetBuilder.collate.

Derive cells per row

The collate requires an explicit cellsPerRow
argument, which is the number of frames per
row in the output image. It can be manually counted,
or calculated as follows:

Find the width of frame, specified when constructing
AnimationSheetBuilder. For example, in the following
snippet it’s 80:

final

AnimationSheetBuilder

animationSheet

AnimationSheetBuilder

frameSize:

const

Size

80

30