From efa55e9f5746609495711fc35a2df9413c4274e6 Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Sat, 18 May 2024 02:35:28 +0530 Subject: [PATCH] Code formatted. --- example/lib/custom/initial_images_custom_example.dart | 3 ++- example/lib/custom/selectable_custom_example.dart | 8 ++++++-- example/lib/main.dart | 3 ++- lib/src/widgets/default_draggable_item_widget.dart | 8 +++----- lib/src/widgets/default_initial_widget.dart | 3 ++- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/example/lib/custom/initial_images_custom_example.dart b/example/lib/custom/initial_images_custom_example.dart index ca3e86d..358acca 100644 --- a/example/lib/custom/initial_images_custom_example.dart +++ b/example/lib/custom/initial_images_custom_example.dart @@ -21,7 +21,8 @@ class _InitialImagesCustomExampleState UniqueKey().toString(), name: "test-image.jpg", extension: "jpg", - path: "https://cc-prod.scene7.com/is/image/CCProdAuthor/What-is-Stock-Photography_P1_mobile", + path: + "https://cc-prod.scene7.com/is/image/CCProdAuthor/What-is-Stock-Photography_P1_mobile", ), ImageFile( UniqueKey().toString(), diff --git a/example/lib/custom/selectable_custom_example.dart b/example/lib/custom/selectable_custom_example.dart index 11c3879..9aed743 100644 --- a/example/lib/custom/selectable_custom_example.dart +++ b/example/lib/custom/selectable_custom_example.dart @@ -87,7 +87,9 @@ class _SelectableCustomExampleState extends State { Positioned.fill( child: Container( decoration: BoxDecoration( - border: Border.all(color: Theme.of(context).colorScheme.primary, width: 10), + border: Border.all( + color: Theme.of(context).colorScheme.primary, + width: 10), ), )), if (selectedImages.contains(imageFile)) @@ -95,7 +97,9 @@ class _SelectableCustomExampleState extends State { child: Container( decoration: BoxDecoration( borderRadius: BorderRadius.circular(20), - border: Border.all(color: Theme.of(context).colorScheme.primary, width: 10), + border: Border.all( + color: Theme.of(context).colorScheme.primary, + width: 10), ), )), ], diff --git a/example/lib/main.dart b/example/lib/main.dart index 677a7ad..d6c490d 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -17,7 +17,8 @@ void main() { elevatedButtonTheme: ElevatedButtonThemeData( style: ButtonStyle( elevation: MaterialStateProperty.all(0), - backgroundColor: MaterialStateProperty.all(Colors.purple.shade50)), + backgroundColor: + MaterialStateProperty.all(Colors.purple.shade50)), )), home: const DemoPage(), )); diff --git a/lib/src/widgets/default_draggable_item_widget.dart b/lib/src/widgets/default_draggable_item_widget.dart index 1806024..9516ba9 100644 --- a/lib/src/widgets/default_draggable_item_widget.dart +++ b/lib/src/widgets/default_draggable_item_widget.dart @@ -66,13 +66,11 @@ class DefaultDraggableItemWidget extends StatelessWidget { shape: BoxShape.circle, ), child: closeButtonIcon ?? - Icon( - Icons.close, - size: 18, + Icon(Icons.close, + size: 18, color: Theme.of(context) .colorScheme - .onSecondaryContainer - )), + .onSecondaryContainer)), ), ), ), diff --git a/lib/src/widgets/default_initial_widget.dart b/lib/src/widgets/default_initial_widget.dart index 2b33a92..d2b9afb 100644 --- a/lib/src/widgets/default_initial_widget.dart +++ b/lib/src/widgets/default_initial_widget.dart @@ -13,7 +13,8 @@ class DefaultInitialWidget extends StatelessWidget { @override Widget build(BuildContext context) { final pickerView = MultiImagePickerControllerWrapper.of(context); - final bgColor = backgroundColor ?? Theme.of(context).colorScheme.secondaryContainer; + final bgColor = + backgroundColor ?? Theme.of(context).colorScheme.secondaryContainer; return Container( margin: margin ?? pickerView.padding, decoration: BoxDecoration(