Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- void main() => runApp(MyApp());
- class MyApp extends StatelessWidget{
- @override
- Widget build(BuildContext context){
- return MaterialApp(
- // theme : ThemeData(
- // brightness: Brightness.dark,
- // primaryColor: Colors.black
- // ),
- // home : Scaffold(
- // appBar: AppBar(
- // title: const Text('Home'),
- // centerTitle: true,
- // actions: <Widget>[
- // IconButton(
- // icon: Icon(Icons.comment),
- // tooltip: 'Comment icon',
- // onPressed: () {},
- // ),
- // IconButton(
- // icon: Icon(Icons.settings),
- // tooltip: 'Settings icon',
- // onPressed: (){},
- // ),
- // ],
- // // elevation : 50.0,
- // leading: IconButton( //this just creates a dummy button, comment this if you are using drawer
- // icon : Icon(Icons.menu),
- // tooltip: 'Menu icon',
- // onPressed: (){},
- // ),
- // //brightness: Brightness.dark, //Not sure what this did, it didn't change much
- // //backgroundColor: Colors.red,
- // //shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(360)),
- // ),
- // body: const Center(
- // child: Text(
- // "Rajath",
- // style: TextStyle(fontSize: 24),
- // ),
- // ),
- // ),
- home : DefaultTabController(
- length: 5,
- child: Scaffold(
- appBar: AppBar(
- title: const Text('Home'),
- centerTitle: true,
- backgroundColor: Colors.white,
- bottom: TabBar(
- tabs: [
- Tab(icon : Icon(Icons.music_note, color : Colors.green)),
- Tab(icon : Icon(Icons.music_video, color: Colors.amber)),
- Tab(icon : Icon(Icons.camera_alt, color : Colors.black)),
- Tab(icon : Icon(Icons.grade, color : Colors.pinkAccent)),
- Tab(icon : Icon(Icons.email, color : Colors.red)),
- ],
- ),
- ),
- body: TabBarView(
- children: [
- Text(
- 'Lyrics',
- textAlign: TextAlign.center,
- ),
- Icon(Icons.music_video),
- Icon(Icons.camera_alt),
- Icon(Icons.grade),
- Icon(Icons.email),
- ],
- ),
- )
- ),
- debugShowCheckedModeBanner: false,
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement