bramp / bramp/nine_patch

Destroys the whole asset shape

Open
#2 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2
Forks
0
Avg merge
39m
Merged PRs (30d)
1

Description

So I got the png from your give project
![textbox_side](https://github.com/bramp/nine_patch/assets/23280743/133ffad3-7b36-465c-830b-99e7bd354a9f)
nad went to this website https://www.9patch.online/editor and created the 9 patch image of this png and this website gives me this 9 slice image
![textbox_side 9](https://github.com/bramp/nine_patch/assets/23280743/b02329d4-0677-45f1-a9c3-d3579066cac3)
and now when i run
`dart run nine_patcher path/to/the/.9.png/image` and then it returns this error

`Unhandled exception:
InvalidNinePatchException: 'No stretch area found along the top.'
#0 findStretch (package:nine_patcher/src/image_decode.dart:115:5)
#1 decodeNinePatchMetadata (package:nine_patcher/src/image_decode.dart:24:19)
#2 new NinePatchImage.fromImage (package:nine_patcher/src/image.dart:18:22)
#3 main (file:///Users/ahmadizaz/.pub-cache/hosted/pub.dev/nine_patcher-1.0.1/bin/nine_patcher.dart:65:29)
`

Now Okay the error is self explanatory but whatever image I add, it always just gives the error. was not able to create .json file for once.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.