Skip to content

Commit

Permalink
Code formatted.
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham16g committed May 17, 2024
1 parent 9834fc4 commit efa55e9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
3 changes: 2 additions & 1 deletion example/lib/custom/initial_images_custom_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
8 changes: 6 additions & 2 deletions example/lib/custom/selectable_custom_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,19 @@ class _SelectableCustomExampleState extends State<SelectableCustomExample> {
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))
Positioned.fill(
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),
),
)),
],
Expand Down
3 changes: 2 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
));
Expand Down
8 changes: 3 additions & 5 deletions lib/src/widgets/default_draggable_item_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
),
),
),
Expand Down
3 changes: 2 additions & 1 deletion lib/src/widgets/default_initial_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit efa55e9

Please sign in to comment.