better linting
This commit is contained in:
parent
c7324a6b19
commit
aa31a79d20
26 changed files with 163 additions and 131 deletions
|
@ -40,7 +40,7 @@ class ImageCarouselView extends StatelessWidget {
|
|||
children: [
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
padding: const EdgeInsets.all(8),
|
||||
child: Card(
|
||||
elevation: 8,
|
||||
surfaceTintColor: ConstColours.transparent,
|
||||
|
@ -110,7 +110,7 @@ class ImageCarouselView extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
),
|
||||
const Gap(24),
|
||||
Gap.size24,
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24),
|
||||
// Assuming that this data is coming from an external CRM, if it is coming with the
|
||||
|
|
|
@ -21,9 +21,11 @@ class ImageCarouselViewModel extends BaseViewModel {
|
|||
final CarouselController carouselController = CarouselController();
|
||||
|
||||
@override
|
||||
Future<void> initialise(bool Function() mounted, [arguments]) async {
|
||||
_currentImageModelNotifier = ValueNotifier(_imagesService.imageModels
|
||||
.elementAt((arguments as ImageCarouselViewArguments).imageIndexKey));
|
||||
Future<void> initialise(bool Function() mounted, [Object? arguments]) async {
|
||||
_currentImageModelNotifier = ValueNotifier(
|
||||
_imagesService.imageModels
|
||||
.elementAt((arguments! as ImageCarouselViewArguments).imageIndexKey),
|
||||
);
|
||||
log.info('Initialized with image: ${_currentImageModelNotifier.value.imageIndex}');
|
||||
|
||||
super.initialise(mounted, arguments);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue