Compare commits
No commits in common. "2288cba78ed30806ba306d0740b6087858806fd7" and "6012a1541ed680fa491b9ec55a0fc5a29726280f" have entirely different histories.
2288cba78e
...
6012a1541e
@ -280,6 +280,84 @@ class _ActivityViewState extends State<ActivityView> {
|
|||||||
fontSize: 20,
|
fontSize: 20,
|
||||||
fontWeight: FontWeight.bold),
|
fontWeight: FontWeight.bold),
|
||||||
'Actions')),
|
'Actions')),
|
||||||
|
|
||||||
|
// Padding(
|
||||||
|
// padding: const EdgeInsets.only(left: 10, right: 10),
|
||||||
|
// child: Card(
|
||||||
|
// clipBehavior: Clip.antiAlias,
|
||||||
|
// shape: const RoundedRectangleBorder(
|
||||||
|
// borderRadius: BorderRadius.only(
|
||||||
|
// topLeft: Radius.circular(10),
|
||||||
|
// topRight: Radius.circular(10)),
|
||||||
|
// ),
|
||||||
|
// color: Theme.of(context).colorScheme.onPrimary,
|
||||||
|
// child: Row(children: [
|
||||||
|
// Ink(
|
||||||
|
// width: 70,
|
||||||
|
// color: Theme.of(context)
|
||||||
|
// .colorScheme
|
||||||
|
// .primaryContainer,
|
||||||
|
// child: Consumer<ActivityTimerModel>(
|
||||||
|
// builder: (context, atm, child) {
|
||||||
|
// return IconButton(
|
||||||
|
// alignment:
|
||||||
|
// AlignmentDirectional.center,
|
||||||
|
// icon: atm.isActive
|
||||||
|
// ? const Icon(
|
||||||
|
// Icons.pause_rounded)
|
||||||
|
// : const Icon(
|
||||||
|
// Icons.play_arrow_rounded),
|
||||||
|
// onPressed: () => {
|
||||||
|
// atm.isActive
|
||||||
|
// ? atm.pause()
|
||||||
|
// : atm.start()
|
||||||
|
// });
|
||||||
|
// },
|
||||||
|
// )),
|
||||||
|
// Expanded(
|
||||||
|
// flex: 1,
|
||||||
|
// child: Stack(
|
||||||
|
// alignment: Alignment.center,
|
||||||
|
// children: [
|
||||||
|
// Container(
|
||||||
|
// alignment: Alignment.center,
|
||||||
|
// child: Consumer<ActivityTimerModel>(
|
||||||
|
// builder: (context, atm, child) {
|
||||||
|
// return Text(
|
||||||
|
// style: const TextStyle(
|
||||||
|
// fontSize: 20),
|
||||||
|
// textAlign: TextAlign.center,
|
||||||
|
// '${atm.actionCount} ${atm.currentAction['type']}'
|
||||||
|
// .toTitleCase());
|
||||||
|
// },
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// Container(
|
||||||
|
// alignment: Alignment.centerRight,
|
||||||
|
// padding:
|
||||||
|
// EdgeInsets.only(right: 15),
|
||||||
|
// child:
|
||||||
|
// Consumer<ActivityTimerModel>(
|
||||||
|
// builder: (context, atm,
|
||||||
|
// child) {
|
||||||
|
// return Text(
|
||||||
|
// style: const TextStyle(
|
||||||
|
// fontSize: 12),
|
||||||
|
// textAlign: TextAlign.right,
|
||||||
|
// '${atm.currentAction['actionID'] + 1} of ${atm.totalActions()}');
|
||||||
|
// })),
|
||||||
|
// ])),
|
||||||
|
// ]))),
|
||||||
|
// Padding(
|
||||||
|
// padding: EdgeInsets.only(left: 14, right: 14),
|
||||||
|
// child: Consumer<ActivityTimerModel>(
|
||||||
|
// builder: (context, atm, child) {
|
||||||
|
// return LinearProgressIndicator(
|
||||||
|
// value: atm.progress,
|
||||||
|
// semanticsLabel: 'Activity Progress',
|
||||||
|
// );
|
||||||
|
// })),
|
||||||
|
// ActivityActionView(actions: actions),
|
||||||
] +
|
] +
|
||||||
action(actions)));
|
action(actions)));
|
||||||
} else {
|
} else {
|
||||||
|
@ -21,7 +21,7 @@ class ActivityViewCategories<T extends List<Enum>> extends StatelessWidget {
|
|||||||
itemCount: object.length,
|
itemCount: object.length,
|
||||||
itemBuilder: (BuildContext context, int index) {
|
itemBuilder: (BuildContext context, int index) {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: EdgeInsets.only(right: 5),
|
padding: EdgeInsets.only(right: 10),
|
||||||
child: ActionChip(
|
child: ActionChip(
|
||||||
visualDensity: VisualDensity.compact,
|
visualDensity: VisualDensity.compact,
|
||||||
avatar: icon,
|
avatar: icon,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user