First, declare the key for scaffold: final scaffoldKey = GlobalKey<ScaffoldState>();. Now, pass this key to the Scaffold widget where the drawer is placed.
確定! 回上一頁