Skip to content

Commit

Permalink
feat: add example hdr images
Browse files Browse the repository at this point in the history
  • Loading branch information
wisetarman committed Nov 26, 2023
1 parent 0c0d161 commit 278175a
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions packages/flutter_jxl/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,28 @@ class _MyHomePageState extends State<MyHomePage> {
// JxlImage.asset(
// 'assets/testanim.jxl',
// ),
// JxlImage.asset(
// 'assets/testanim2.jxl',
// cropInfo:
// const CropInfo(width: 100, height: 300, left: 10, top: 0),
// ),
// JxlImage.network(
// 'https://raw.githubusercontent.com/libjxl/conformance/master/testcases/animation_icos4d/input.jxl',
// ),
// JxlImage.asset(
// 'assets/testalpha.jxl',
// ),
// JxlImage.asset(
// 'assets/jxlImage.jxl',
// key: const Key('jxlImage'),
// ),
JxlImage.asset(
'assets/testanim2.jxl',
cropInfo:
const CropInfo(width: 100, height: 300, left: 10, top: 0),
),
JxlImage.network(
'https://raw.githubusercontent.com/libjxl/conformance/master/testcases/animation_icos4d/input.jxl',
),
JxlImage.asset(
'assets/testalpha.jxl',
),
JxlImage.asset(
'assets/jxlImage.jxl',
key: const Key('jxlImage'),
'assets/testhdr.jxl',
// cropInfo:
// const CropInfo(width: 1000, height: 1000, left: 10, top: 0),
),
JxlImage.asset(
'assets/testhdr.jxl',
cropInfo:
const CropInfo(width: 1000, height: 1000, left: 10, top: 0),
'assets/testhdr2.jxl',
),
],
),
Expand Down

0 comments on commit 278175a

Please sign in to comment.