flutter_button 0.0.4 flutter_button: ^0.0.4 copied to clipboard
This packege help you for develop applications fast and clean.
import 'package:example/screens/3d.dart';
import 'package:example/screens/custom.dart';
import 'package:example/screens/fab.dart';
import 'package:example/screens/insta.dart';
import 'package:example/screens/social.dart';
import 'package:example/screens/text.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: "flutter buttons",
home: Home(),
);
}
}
class Home extends StatelessWidget {
const Home({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return DefaultTabController(
length: 6,
child: Scaffold(
appBar: AppBar(
backgroundColor: Colors.red,
bottom: buildTabBar(),
title: Text("flutter buttons' example app"),
),
body: buildBody(),
),
);
}
TabBarView buildBody() {
return TabBarView(
children: [
Button3DScreen(),
Social(),
Custom(),
InstaScreen(),
TextScreen(),
FabScreen(),
],
);
}
TabBar buildTabBar() {
return TabBar(
indicatorColor: Colors.white,
tabs: [
Tab(icon: Text("3D")),
Tab(icon: Text("Social")),
Tab(icon: Text("Custom")),
Tab(icon: Text("Insta")),
Tab(icon: Text("Text")),
Tab(icon: Text("FAB")),
],
);
}
}