This is the code
import 'package:flutter/material.dart';
void main(List<String> args) {
runApp(
MaterialApp(
debugShowCheckedModeBanner: false,
darkTheme: ThemeData.dark(),
home: SafeArea(
child: Scaffold(
backgroundColor: Color(0xFFf8dbb9),
endDrawer: Drawer(
backgroundColor: Color(0xFFf8dbb9),
// shadowColor: Color.fromARGB(255, 172, 170, 169),
// elevation: 1,
child: ListView(),
),
appBar: AppBar(
backgroundColor: Color(0xFFf8dbb9),
shadowColor: Color(0xFFf8dbb9),
elevation: 0,
iconTheme: IconThemeData(color: Colors.black,
size: 24),
toolbarHeight: 100,
),
),
)
),
);
}
ChatGPT suggested that i add an action with a sizedbox to create the space, but the toolbar become missing after that. I added right below the toobarHeight.
toolbarHeight: 100,
actions: [SizedBox(width: 10,)],
2
Answers
You can use EndDrawerButton widget.
fullcode
if the toolbar is get missing add
assign it to the scaffold
and add button to handle drawer opening
here is the full code