34 Widget
build(BuildContext context) {
35 final safePadding = MediaQuery.of(context).padding;
36 final padding = config.padding ?? EdgeInsets.only(
37 right: kStandardRightPadding + safePadding.right,
38 bottom: kFollowMeBottomPadding + safePadding.bottom,
40 final width = config.buttonWidth ?? kStandardButtonWidth;
41 final height = config.buttonHeight ?? kStandardButtonHeight;
42 final bgColor = config.buttonBackgroundColor ?? kButtonBackgroundColor;
43 final accentColor = config.accentColor ?? kBaseBlueColor;
44 final textColor = config.textColor ?? kBaseBlackColor;
46 Widget iconChild = config.followMeIcon ??
Image.asset(
47 'packages/navigine_sdk/assets/navigine_follow_me.png',
52 if (isFollowing && config.followMeIconActive !=
null) {
53 iconChild = config.followMeIconActive!;
57 alignment: Alignment.bottomRight,
63 decoration: BoxDecoration(
64 color: isFollowing ? kWhiteBackgroundColor : bgColor,
65 borderRadius: kStandardBorderRadius,
69 width: kActiveBorderWidth,
72 boxShadow: kStandardShadows,
75 color: Colors.transparent,
77 borderRadius: kStandardBorderRadius,
80 padding:
const EdgeInsets.all(8.0),
81 child: (config.followMeIcon !=
null || config.followMeIconActive !=
null)
84 colorFilter: ColorFilter.mode(
85 isFollowing ? accentColor : textColor,