import 'package:flutter/material.dart';

void main() {
  runApp(
    MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          actions: [
            IconButton(
              icon: Icon(Icons.home),
              onPressed: () {
                print('tab');
              },
            ),
            Icon(Icons.play_arrow),
          ],
          centerTitle: false,
          title: Text('This is App bar'),
          backgroundColor: Colors.red,
        ),
        body: TestWidget(),
        floatingActionButton: FloatingActionButton(
            child: Icon(Icons.bug_report),
            onPressed: () {
              print('bug');
            }),
      ),
    ),
  );
}

class TestWidget extends StatelessWidget {
  const TestWidget({super.key});

  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Center(
        child: Text(
          'Hello Flutter First',
          style: TextStyle(
            fontSize: 50,
            color: Colors.black,
          ),
        ),
      ),
    );
  }
}