Adjust padding in CustomNavigationBar
- Add vertical minimum padding to SafeArea - Remove bottom padding in bottomNavigationBar - replaced left/right padding in bottomNavigationBar with EdgeInsets.symmetric - removed bottom padding from bottomNavigationBar
This commit is contained in:
@@ -32,6 +32,7 @@ class _CustomNavigationBarState extends State<CustomNavigationBar>
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return SafeArea(
|
return SafeArea(
|
||||||
|
minimum: EdgeInsets.symmetric(vertical: 30),
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
centerTitle: true,
|
centerTitle: true,
|
||||||
@@ -56,7 +57,7 @@ class _CustomNavigationBarState extends State<CustomNavigationBar>
|
|||||||
body: tabs[currentIndex],
|
body: tabs[currentIndex],
|
||||||
extendBody: true,
|
extendBody: true,
|
||||||
bottomNavigationBar: Padding(
|
bottomNavigationBar: Padding(
|
||||||
padding: const EdgeInsets.only(left: 12.0, right: 12.0, bottom: 18.0),
|
padding: const EdgeInsets.symmetric(horizontal: 12.0),
|
||||||
child: Material(
|
child: Material(
|
||||||
elevation: 10,
|
elevation: 10,
|
||||||
borderRadius: BorderRadius.circular(24),
|
borderRadius: BorderRadius.circular(24),
|
||||||
|
|||||||
Reference in New Issue
Block a user