Skip to content

Commit

Permalink
fix: add more spacing to task bottom sheet properties, change rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
kolaente committed Sep 17, 2024
1 parent bac4fd2 commit 03bc86a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/components/TaskBottomSheet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class TaskBottomSheet extends StatefulWidget {

class TaskBottomSheetState extends State<TaskBottomSheet> {
Task _currentTask;
final double propertyPadding = 10.0;

TaskBottomSheetState(this._currentTask);

Expand Down Expand Up @@ -84,6 +85,7 @@ class TaskBottomSheetState extends State<TaskBottomSheet> {
icon: Icon(Icons.edit)),
],
),
SizedBox(height: propertyPadding),
Wrap(
spacing: 10,
children: _currentTask.labels.map((Label label) {
Expand All @@ -94,12 +96,14 @@ class TaskBottomSheetState extends State<TaskBottomSheet> {

// description with html rendering
Text("Description", style: theme.textTheme.headlineSmall),
SizedBox(height: propertyPadding),
Padding(
padding: EdgeInsets.fromLTRB(10, 0, 0, 0),
child: HtmlWidget(_currentTask.description.isNotEmpty
? _currentTask.description
: "No description"),
),
SizedBox(height: propertyPadding),
// Due date
Row(
children: [
Expand All @@ -110,6 +114,7 @@ class TaskBottomSheetState extends State<TaskBottomSheet> {
: "No due date"),
],
),
SizedBox(height: propertyPadding),
// start date
Row(
children: [
Expand All @@ -121,6 +126,7 @@ class TaskBottomSheetState extends State<TaskBottomSheet> {
: "No start date"),
],
),
SizedBox(height: propertyPadding),
// end date
Row(
children: [
Expand All @@ -131,6 +137,7 @@ class TaskBottomSheetState extends State<TaskBottomSheet> {
: "No end date"),
],
),
SizedBox(height: propertyPadding),
// priority
Row(
children: [
Expand All @@ -141,6 +148,7 @@ class TaskBottomSheetState extends State<TaskBottomSheet> {
: "No priority"),
],
),
SizedBox(height: propertyPadding),
// progress
Row(
children: [
Expand Down
3 changes: 3 additions & 0 deletions lib/components/TaskTile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ class TaskTileState extends State<TaskTile> with AutomaticKeepAliveClientMixin {
onTap: () {
showModalBottomSheet<void>(
context: context,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(top: Radius.circular(10.0)),
),
builder: (BuildContext context) {
return TaskBottomSheet(
task: widget.task,
Expand Down

0 comments on commit 03bc86a

Please sign in to comment.