Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.3.0

* Adding custom padding to carouselBar

## 2.2.0

* Removing Research Package styles, integrating carp_themes_package instead.
Expand Down
44 changes: 0 additions & 44 deletions example/ios/Podfile

This file was deleted.

16 changes: 0 additions & 16 deletions example/ios/Podfile.lock

This file was deleted.

9 changes: 9 additions & 0 deletions lib/src/ui/task.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ class RPUITask extends StatefulWidget {

final Image? carouselBarImage;

final double? carouselBarHorizontalPadding;
final double? carouselBarVerticalPadding;

final Color? carouselBarBackgroundColor;

/// The callback function which has to return an [RPTaskResult] object.
Expand All @@ -35,6 +38,8 @@ class RPUITask extends StatefulWidget {
super.key,
required this.task,
this.carouselBarImage,
this.carouselBarHorizontalPadding,
this.carouselBarVerticalPadding,
this.carouselBarBackgroundColor,
this.onSubmit,
this.onCancel,
Expand Down Expand Up @@ -248,6 +253,10 @@ class RPUITaskState extends State<RPUITask> with CanSaveResult {

Widget _carouselBar(RPLocalizations? locale) {
return Container(
padding: EdgeInsets.symmetric(
horizontal: widget.carouselBarHorizontalPadding ?? 0,
vertical: widget.carouselBarVerticalPadding ?? 0,
),
color: widget.carouselBarBackgroundColor ??
Theme.of(context).extension<CarpColors>()!.backgroundGray,
child: SizedBox(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: research_package
description: A Flutter framework for obtaining informed consent, showing surveys and collecting results.
version: 2.2.0
version: 2.3.0
homepage: https://github.com/cph-cachet/research.package

environment:
Expand Down