Skip to content

Commit

Permalink
refactor(widgets): update background color
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanaidilp committed Jan 13, 2024
1 parent fa74de7 commit 88c3ae4
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class _LatestUpdatePageState extends State<LatestUpdatePage> {
),
8.verticalSpace,
Divider(
color: context.picoColors.background.subtle,
color: context.picoColors.background.neutral.subtle,
thickness: 8.h,
),
Padding(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class _NationalStatisticPageState extends State<NationalStatisticPage> {
SliverAppBar.large(
expandedHeight: 128.h,
scrolledUnderElevation: 10.h,
surfaceTintColor: context.picoColors.background.main,
surfaceTintColor: context.picoColors.background.neutral.main,
shadowColor:
context.picoColors.text.neutral.main.withOpacity(0.1),
title: BlocBuilder<LatestNationalStatisticBloc,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class StatisticPage extends StatelessWidget {
SliverAppBar.large(
expandedHeight: 128.h,
scrolledUnderElevation: 10.h,
surfaceTintColor: context.picoColors.background.main,
surfaceTintColor: context.picoColors.background.neutral.main,
shadowColor: context.picoColors.text.neutral.main.withOpacity(0.1),
title: BlocBuilder<LatestStatisticBloc, LatestStatisticState>(
builder: (context, state) => AnimatedSwitcher(
Expand Down Expand Up @@ -53,7 +53,7 @@ class StatisticPage extends StatelessWidget {
child: const StatisticDetailSection(),
),
Divider(
color: context.picoColors.background.subtle,
color: context.picoColors.background.neutral.subtle,
thickness: 8.h,
),
Padding(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class BarChartWidget extends StatelessWidget {
@override
Widget build(BuildContext context) => DecoratedBox(
decoration: BoxDecoration(
color: context.picoColors.background.white,
color: context.picoColors.background.card.main,
borderRadius: BorderRadius.circular(12.r),
border: Border.all(
color: context.picoColors.outline.neutral.main,
Expand Down Expand Up @@ -201,7 +201,7 @@ class BarChartWidget extends StatelessWidget {
top: Radius.circular(12.r),
),
color: [
context.picoColors.background.strong,
context.picoColors.background.neutral.strong,
...datasetColors,
][data.listIndex],
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class PicoCaseCard extends StatelessWidget {
@override
Widget build(BuildContext context) => DecoratedBox(
decoration: BoxDecoration(
color: context.picoColors.background.white,
color: context.picoColors.background.card.main,
borderRadius: BorderRadius.circular(8.r),
border: Border.all(
color: context.picoColors.outline.neutral.main,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class PicoSuspectCard extends StatelessWidget {
@override
Widget build(BuildContext context) => DecoratedBox(
decoration: BoxDecoration(
color: context.picoColors.background.white,
color: context.picoColors.background.card.main,
borderRadius: BorderRadius.circular(10.r),
border: Border.all(
color: context.picoColors.outline.neutral.main,
Expand All @@ -83,14 +83,15 @@ class PicoSuspectCard extends StatelessWidget {
customBorder: const CircleBorder(),
child: Tooltip(
decoration: BoxDecoration(
color: context.picoColors.background.white,
color: context.picoColors.background.neutral.white,
borderRadius: BorderRadius.circular(12.r),
border: Border.all(
color: context.picoColors.outline.neutral.strong,
),
boxShadow: [
BoxShadow(
color: context.picoColors.background.inverse
color: context
.picoColors.background.neutral.inverse
.withOpacity(0.1),
spreadRadius: 4.r,
blurRadius: 6.r,
Expand Down Expand Up @@ -173,7 +174,7 @@ class PicoSuspectCard extends StatelessWidget {
],
),
Divider(
color: context.picoColors.background.strong,
color: context.picoColors.background.neutral.strong,
),
8.verticalSpace,
Row(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class PicoTestCaseCard extends StatelessWidget {
Widget build(BuildContext context) => DecoratedBox(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10.r),
color: context.picoColors.background.white,
color: context.picoColors.background.card.main,
border: Border.all(
color: context.picoColors.outline.neutral.main,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class PicoCardTile extends StatelessWidget {
final GestureTapCallback? onTap;
@override
Widget build(BuildContext context) => Material(
color: context.picoColors.background.white,
color: context.picoColors.background.card.main,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.r),
side: BorderSide(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PicoTotalTestCardTile extends StatelessWidget {
color: context.picoColors.outline.neutral.main,
),
),
color: context.picoColors.background.white,
color: context.picoColors.background.card.main,
child: InkWell(
borderRadius: BorderRadius.circular(10.r),
onTap: onTap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PicoTotalTestCard extends StatelessWidget {
width: 1.sw,
child: DecoratedBox(
decoration: BoxDecoration(
color: context.picoColors.background.white,
color: context.picoColors.background.card.main,
borderRadius: BorderRadius.circular(10.r),
border: Border.all(
color: context.picoColors.outline.neutral.main,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PicoNetworkImage extends StatelessWidget {
url,
border: border ??
Border.all(
color: context.picoColors.background.strong,
color: context.picoColors.background.neutral.strong,
),
height: height,
width: width,
Expand All @@ -40,15 +40,15 @@ class PicoNetworkImage extends StatelessWidget {
child: Container(
width: width,
height: height,
color: context.picoColors.background.white,
color: context.picoColors.background.neutral.white,
).sekeletonize(),
),
LoadState.failed => Container(
width: width,
height: height,
decoration: BoxDecoration(
borderRadius: borderRadius,
color: context.picoColors.background.subtle,
color: context.picoColors.background.neutral.subtle,
),
child: Material(
borderRadius: borderRadius,
Expand All @@ -62,7 +62,7 @@ class PicoNetworkImage extends StatelessWidget {
children: [
Icon(
Icons.image_not_supported_rounded,
color: context.picoColors.background.strong,
color: context.picoColors.icon.neutral.strong,
),
8.verticalSpace,
Text(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class _PicoBannerSliderState<T> extends State<PicoBannerSlider<T>> {
onDotClicked: (index) => _carouselController.animateToPage(index),
effect: ExpandingDotsEffect(
activeDotColor: context.picoColors.icon.semantic.primary,
dotColor: context.picoColors.background.strong,
dotColor: context.picoColors.background.neutral.strong,
dotWidth: 8.w,
dotHeight: 8.h,
spacing: 4.w,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PicoBannerSliderSkeleton extends StatelessWidget {
child: Container(
width: 0.9.sw,
height: 0.25.sh,
color: context.picoColors.background.white,
color: context.picoColors.background.neutral.white,
).sekeletonize(),
),
),
Expand All @@ -39,7 +39,7 @@ class PicoBannerSliderSkeleton extends StatelessWidget {
child: Container(
width: 0.15.sw,
height: 8.h,
color: context.picoColors.background.inverse,
color: context.picoColors.background.neutral.inverse,
).sekeletonize(),
),
),
Expand Down

0 comments on commit 88c3ae4

Please sign in to comment.