I want the navbar inner container to take 80% of screen width... is that possible with the AppBar Widget? This means that i want the hamburger icon on the right (generated by endDrawer) to move 10% to the left
import 'package:flutter/material.dart';
class Navbar extends StatefulWidget {
const Navbar({Key? key, required this.child}) : super(key: key);
final Widget child;
@override
State<Navbar> createState() => _NavbarState();
}
class _NavbarState extends State<Navbar> {
final GlobalKey<ScaffoldState> scaffoldKey = GlobalKey<ScaffoldState>();
@override
Widget build(BuildContext context) {
return Scaffold(
key: scaffoldKey,
endDrawer: Drawer(
backgroundColor: kYellowColor,
child: Column(
children: [
Text('Form'),
Text('Receipt'),
],
),
),
appBar: AppBar(
backgroundColor: kYellowColor,
iconTheme: const IconThemeData(color: kBlackColor),
automaticallyImplyLeading: false,
),
body: widget.child,
);
}
}
