
Appbur = > 상단의 menu bar , home bar 등 생성
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class HomePage extends StatefulWidget {
const HomePage({Key? key}) : super(key: key);
@override
State<HomePage> createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(8.0),
child: Scaffold(
backgroundColor: Colors.white38,
appBar: AppBar(
centerTitle: true,
title: Text(''),
backgroundColor: Colors.black12,
leading: IconButton(icon: Icon(Icons.menu), onPressed: () { },),
actions: [
IconButton(onPressed: (){}, icon: Icon(Icons.home) ),
],
),
),
);
}
}

| Flutter Coding Study_1 (0) | 2023.03.08 |
|---|