Jose Alba 6701411fc1
Sliders and dividers demo, assets, and dartpad (#63)
* sliders_dividers

* Sliders and Dividers documenting, assets, and dartpads

* fixed issues

* fixed issues

* fixed issues

* updated divider document
2020-09-17 19:06:13 +02:00

38 lines
1.0 KiB
Dart

import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
home: DefaultTabController(
length: 3,
child: Scaffold(
appBar: AppBar(
title: Text('Fixed Tabs'),
automaticallyImplyLeading: false,
backgroundColor: Color(0xff5808e5),
bottom: TabBar(
indicatorColor: Colors.white,
tabs: [
Tab(text: 'DOGS', icon: Icon(Icons.favorite)),
Tab(text: 'CATS', icon: Icon(Icons.music_note)),
Tab(text: 'BIRDS', icon: Icon(Icons.search)),
],
),
),
body: TabBarView(
children: [
Center(child: Text('DOGS')),
Center(child: Text('CATS')),
Center(child: Text('BIRDS')),
],
),
),
),
);
}
}