mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-29 07:56:53 +08:00
refactor: Use canvas.drawImageNine in NineTileBox (#1314)
`canvas.drawImageNine` is built-in now a lot of logic was removed from NineTileBox.
This commit is contained in:
@ -6,9 +6,9 @@ Widget nineTileBoxBuilder(DashbookContext ctx) {
|
||||
return Container(
|
||||
width: ctx.numberProperty('width', 200),
|
||||
height: ctx.numberProperty('height', 200),
|
||||
child: NineTileBox.asset(
|
||||
child: NineTileBoxWidget.asset(
|
||||
path: 'nine-box.png',
|
||||
tileSize: 8,
|
||||
tileSize: 22,
|
||||
destTileSize: 50,
|
||||
child: const Center(
|
||||
child: Text(
|
||||
|
||||
Reference in New Issue
Block a user