From fe316b336edad254b6a7ed1337935ff4abcce20d Mon Sep 17 00:00:00 2001 From: AYM1607 Date: Tue, 12 Mar 2019 20:21:25 -0600 Subject: [PATCH] Added docs for the task tile methods --- lib/src/widgets/action_button.dart | 4 ++-- lib/src/widgets/task_list_tile.dart | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/src/widgets/action_button.dart b/lib/src/widgets/action_button.dart index 9f744f5..b67ea99 100644 --- a/lib/src/widgets/action_button.dart +++ b/lib/src/widgets/action_button.dart @@ -54,13 +54,13 @@ class ActionButton extends StatelessWidget { color: color, borderRadius: BorderRadius.circular(radius), ), - child: getButtonBody(), + child: buildButtonBody(), ), ); } /// Returns the button body. - Widget getButtonBody() { + Widget buildButtonBody() { final children = []; if (leadingIconData != null) { children.addAll([ diff --git a/lib/src/widgets/task_list_tile.dart b/lib/src/widgets/task_list_tile.dart index 76f25b8..3c97c49 100644 --- a/lib/src/widgets/task_list_tile.dart +++ b/lib/src/widgets/task_list_tile.dart @@ -61,6 +61,7 @@ class TaskListTile extends StatelessWidget { ); } + /// Builds the section that contains the task's event and its text. Widget buildTextSection() { return Expanded( flex: 6, @@ -91,6 +92,7 @@ class TaskListTile extends StatelessWidget { ); } + /// Builds the section that contains the 3 buttons for the tile. Widget buildButtonSection() { return Expanded( flex: 5, @@ -130,6 +132,7 @@ class TaskListTile extends StatelessWidget { ); } + /// Builds the badge that showcases the tasks priority. Widget buildBadge() { final badgeColor = getColorFromPriority(task.priority); return Container(