Skip to content

Commit

Permalink
Example effect improved.
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham16g committed May 17, 2024
1 parent 9c0031f commit a9b533e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import 'package:example/custom_examples.dart';
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
import 'package:multi_image_picker_view/multi_image_picker_view.dart';

import 'picker.dart';

void main() {
timeDilation = 4;
runApp(MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Multi Image Picker View Example',
Expand Down
13 changes: 6 additions & 7 deletions lib/src/widgets/default_initial_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ class DefaultInitialWidget extends StatelessWidget {
child: Material(
color: Colors.transparent,
child: InkWell(
splashColor: Theme.of(context).colorScheme.primary.withOpacity(0.07),
hoverColor: Theme.of(context).colorScheme.primary.withOpacity(0.07),
highlightColor:
Theme.of(context).colorScheme.primary.withOpacity(0.07),
focusColor: Theme.of(context).colorScheme.primary.withOpacity(0.07),
overlayColor: MaterialStateProperty.all(
Theme.of(context).colorScheme.primary.withOpacity(0.07)),
overlayColor: MaterialStateProperty.resolveWith((states) {
if (states.contains(MaterialState.pressed)) {
return Theme.of(context).colorScheme.primary.withOpacity(0.15);
}
return Theme.of(context).colorScheme.primary.withOpacity(0.07);
}),
borderRadius: BorderRadius.circular(4),
onTap: pickerView.controller.pickImages,
child: Center(
Expand Down

0 comments on commit a9b533e

Please sign in to comment.