Skip to content

Instantly share code, notes, and snippets.

@balinux
Created November 5, 2021 02:30
Show Gist options
  • Save balinux/e64ea11357d97bbaca96fbb2997b33ce to your computer and use it in GitHub Desktop.
Save balinux/e64ea11357d97bbaca96fbb2997b33ce to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:ikanku/constants/color_constant.dart';
import 'package:ikanku/constants/style_constant.dart';
import 'package:flutter_svg/flutter_svg.dart';
class MyBottomNavBar extends StatelessWidget {
const MyBottomNavBar({
Key key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
padding: EdgeInsets.only(
left: kDefaultPadding * 2,
right: kDefaultPadding * 2,
bottom: kDefaultPadding,
),
height: 80,
decoration: BoxDecoration(
color: Colors.white,
boxShadow: [
BoxShadow(
offset: Offset(0, -10),
blurRadius: 35,
color: kShadowColor.withOpacity(0.20),
),
],
borderRadius: BorderRadius.circular(10)),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
IconButton(
icon: SvgPicture.asset("assets/icons/home-icon.svg"),
onPressed: () {},
),
IconButton(
icon: SvgPicture.asset("assets/icons/ship-icon.svg"),
onPressed: () {},
),
IconButton(
icon: SvgPicture.asset("assets/icons/fish-icon.svg"),
onPressed: () {},
),
IconButton(
icon: SvgPicture.asset("assets/icons/person-icon.svg"),
onPressed: () {},
),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment