pinterest_nav_bar 0.0.1+3 pinterest_nav_bar: ^0.0.1+3 copied to clipboard
A new Flutter package project.
import 'package:example/pages.dart';
import 'package:flutter/material.dart';
import 'package:pinterest_nav_bar/pinterest_nav_bar.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
final TextStyle textStyle = TextStyle(fontWeight: FontWeight.bold);
@override
Widget build(BuildContext context) {
return PinterestNavBarController(
child: MaterialApp(
title: 'Pinterest Nav Bar Example',
home: Pages(),
themeMode: ThemeMode.light,
theme: ThemeData(
brightness: Brightness.light,
primaryColor: Colors.white,
// scaffoldBackgroundColor: Colors.grey.shade100,
// bottomNavigationBarTheme: BottomNavigationBarThemeData(
// backgroundColor: Colors.white,
// selectedItemColor: Colors.orange,
// unselectedItemColor: Colors.orange[100],
// ),
tabBarTheme: TabBarTheme(
indicator: BoxDecoration(
color: Colors.black,
borderRadius: BorderRadius.circular(50),
),
labelColor: Colors.white,
unselectedLabelColor: Colors.black,
labelStyle: textStyle,
unselectedLabelStyle: textStyle,
),
),
darkTheme: ThemeData(
brightness: Brightness.dark,
primaryColor: Colors.black,
scaffoldBackgroundColor: Colors.black87,
// bottomNavigationBarTheme: BottomNavigationBarThemeData(
// backgroundColor: Colors.black,
// selectedItemColor: Colors.pink,
// unselectedItemColor: Colors.pink[100],
// ),
tabBarTheme: TabBarTheme(
indicator: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(50),
),
labelColor: Colors.black,
unselectedLabelColor: Colors.white,
labelStyle: textStyle,
unselectedLabelStyle: textStyle,
),
),
),
);
}
}