Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Padding(
- padding: const EdgeInsets.only(left: 16.0, right: 16.0, top: 16.0),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- mainAxisSize: MainAxisSize.max,
- children: [
- // H E A T M A P
- const Flexible(
- child: HeatMapBuilderWidget(),
- ),
- // Daily Goals Top row
- Padding(
- padding: const EdgeInsets.symmetric(vertical: 8.0),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- mainAxisSize: MainAxisSize.max,
- children: [
- Text(
- "Daily Goals",
- style: Theme.of(context).textTheme.titleMedium!.copyWith(
- color: Theme.of(context)
- .colorScheme
- .onSecondaryContainer,
- ),
- ),
- IconButton.filledTonal(
- onPressed: habitCreationFlow,
- icon: const Icon(Icons.add),
- style: ButtonStyle(
- backgroundColor: WidgetStatePropertyAll(
- Theme.of(context).colorScheme.inversePrimary),
- foregroundColor:
- const WidgetStatePropertyAll(Colors.white),
- ),
- ),
- ],
- ),
- ),
- // Navigation Tile leading to future completed page
- GestureDetector(
- onTap: () {},
- child: Container(
- decoration: BoxDecoration(
- color: Theme.of(context).colorScheme.primaryContainer,
- border: Border.all(
- color: Theme.of(context).colorScheme.outline,
- ),
- borderRadius: BorderRadius.circular(16)),
- padding: const EdgeInsets.all(8),
- child: Row(
- crossAxisAlignment: CrossAxisAlignment.center,
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- mainAxisSize: MainAxisSize.max,
- children: [
- Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- mainAxisSize: MainAxisSize.min,
- children: [
- Container(
- decoration: BoxDecoration(
- borderRadius: BorderRadius.circular(12),
- ),
- child: const Icon(Icons.account_circle_outlined),
- ),
- const SizedBox(
- width: 8,
- ),
- Text(
- "Completed",
- style: Theme.of(context)
- .textTheme
- .titleMedium!
- .copyWith(
- color: Theme.of(context)
- .colorScheme
- .onSecondaryContainer,
- ),
- ),
- ],
- ),
- Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- mainAxisSize: MainAxisSize.min,
- children: [
- Text(
- "${context.watch<HabitDatabase>().listOfHabits.length}",
- style:
- Theme.of(context).textTheme.bodyLarge!.copyWith(
- color: Theme.of(context)
- .colorScheme
- .onSecondaryContainer,
- ),
- ),
- const SizedBox(
- width: 8,
- ),
- Icon(
- Icons.arrow_forward_ios_rounded,
- color: Theme.of(context)
- .colorScheme
- .onSecondaryContainer,
- )
- ],
- ),
- ]),
- ),
- ),
- Padding(
- padding: const EdgeInsets.symmetric(vertical: 8.0),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- mainAxisSize: MainAxisSize.max,
- children: [
- Text(
- "In Progress",
- style: Theme.of(context).textTheme.titleMedium!.copyWith(
- color: Theme.of(context)
- .colorScheme
- .onSecondaryContainer,
- ),
- ),
- TextButton(
- onPressed: () {},
- child: Text(
- "Show All",
- style: Theme.of(context).textTheme.labelMedium!.copyWith(
- color: Theme.of(context)
- .colorScheme
- .onSecondaryContainer,
- ),
- ),
- ),
- ],
- ),
- ),
- // H A B I T L I S T
- const Expanded(
- child: HabitTileListBuilder(),
- ),
- ],
- ),
- ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement