diff --git a/example/lib/main.dart b/example/lib/main.dart index 88628b1..e6b94f8 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -245,15 +245,21 @@ class _MyAppState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ - Image( - image: DeviceImage(_selectedImg), - fit: BoxFit.contain, + Flexible( + child: Image( + image: DeviceImage(_selectedImg), + fit: BoxFit.contain, + ), ), - Text( - 'Image id:\n ${_selectedImg.id}', - style: Theme.of(context) - .textTheme - .body1, + Expanded( + child: Text( + 'Image id: \n ${_selectedImg.id}', + style: Theme.of(context) + .textTheme + .body1, + overflow: TextOverflow.visible, + softWrap: true, + ), ), ], ),