pinterest_nav_bar 0.0.1+5 copy "pinterest_nav_bar: ^0.0.1+5" to clipboard
pinterest_nav_bar: ^0.0.1+5 copied to clipboard

A new Flutter package project.

example/lib/main.dart

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,
          ),
        ),
      ),
    );
  }
}
25
likes
130
points
0
downloads

Publisher

verified publisherneatfastro.com

Weekly Downloads

A new Flutter package project.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, provider

More

Packages that depend on pinterest_nav_bar