mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-26 08:54:42 +01:00
Refactor: remove magic constant
This commit is contained in:
parent
75d05e767e
commit
8f2a1d4155
1 changed files with 5 additions and 2 deletions
|
@ -90,8 +90,8 @@ class _ImageEditorState extends State<ImageEditor> {
|
|||
));
|
||||
_src = await ImageLoader.loadUri(
|
||||
"file://${fileInfo!.file.path}",
|
||||
480,
|
||||
360,
|
||||
_previewWidth,
|
||||
_previewHeight,
|
||||
ImageLoaderResizeMethod.fit,
|
||||
isAllowSwapSide: true,
|
||||
);
|
||||
|
@ -371,3 +371,6 @@ class _ToolButton extends StatelessWidget {
|
|||
final VoidCallback? onPressed;
|
||||
final bool isSelected;
|
||||
}
|
||||
|
||||
const _previewWidth = 480;
|
||||
const _previewHeight = 360;
|
||||
|
|
Loading…
Add table
Reference in a new issue