AppBar ์ ๊ฒฝ์ฐ CLASS ๋ก ๋ง๋ค์ง ์๊ณ ํจ์๋ก ๋ง๋๋ ์ด์ ๊ฐ ๋ญ๊ฐ์?
class _RenderAppBar extends StatelessWidget implements PreferredSizeWidget{ final AppBar appBar; const _RenderAppBar({super.key, required this.appBar}); @override Widget build(BuildContext context) { return AppBar( title: Text( '์ค๋๋ ์ถ๊ทผ', style: TextStyle( color: Colors.blue, fontWeight: FontWeight.w700, ), ), backgroundColor: Colors.white, );; } @override Size get preferredSize => Size.fromHeight(appBar.preferredSize.height); }์ถ๊ฐ๋ก ๊ผญ CLASS๋ก ๋ง๋ค๊ณ ์ถ์ผ์๋ค๋ฉด ์ด๋ฐ ํํ๋ก ์ง์ ์์๋ฐ์ CLASS๋ก ๋ง๋ค ์๋ ์์ต๋๋ค.