Skip to content

onestudio-co/flutter_ninepatch_image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resizable bitmaps (ninepatch images) for Flutter

#9-Patch #ninepatch what is A 9 patch image ? is a regular png (.PNG) image which is needful for developers where they require to wrap any content within a background image without pixelating the background image. Usually background images have a fixed height and width, but sometimes we may require background images which does not pixelate though stretched, this now becomes a challenge with regular PNG images.
example for this images

image 1 for example
![image 2 for example]](https://i.ibb.co/ZVq0BkT/orange-9.png)

Result :
Screenshot

how to use

1- This will add a line like this to your package's pubspec.yaml

dependencies:
  ninepatch_image: ^0.0.4
NinePatchImage( imageProvider: AssetImage("assets/orange.9.png"),
 child: Text( "Lorem Ipsum is simply dummy text of the printing "))

TODO Progress

  • Stretchable area
  • Padding box
  • muilti point Stretchable

Contributing

Thank you for considering contributing to WidGen! Feel free to contribute in any way you want.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contact me via e-mail

For any inquiries or clarifications, you can contact me via e-mail. Just send an email to ameral.java@gmail.com.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published