Skip to content

Instantly share code, notes, and snippets.

@TechieBlossom
Last active October 4, 2020 09:32
Show Gist options
  • Save TechieBlossom/6603ab6d87e2b0d16b60be1ea9d16e62 to your computer and use it in GitHub Desktop.
Save TechieBlossom/6603ab6d87e2b0d16b60be1ea9d16e62 to your computer and use it in GitHub Desktop.
class MovieAppBar extends StatelessWidget {
@override
Widget build(BuildContext context) {
//1
return Padding(
padding: EdgeInsets.only(
top: ScreenUtil.statusBarHeight + Sizes.dimen_4.h,
left: Sizes.dimen_16.w,
right: Sizes.dimen_16.w,
),
//2
child: Row(
children: <Widget>[
//3
IconButton(
onPressed: () {},
icon: SvgPicture.asset('assets/svgs/menu.svg', height: Sizes.dimen_12.h),
),
//4
Expanded(
child: const Logo(height: Sizes.dimen_14),
),
//3
IconButton(
onPressed: () {},
icon: Icon(Icons.search, color: Colors.white, size: Sizes.dimen_12.h),
),
],
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment