easy_widget 0.0.1+7 copy "easy_widget: ^0.0.1+7" to clipboard
easy_widget: ^0.0.1+7 copied to clipboard

discontinued
outdated

A new Flutter project.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:easy_widget/easy_widget.dart';


void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: TestBarScreen(),
    );
  }
}

class TestBarScreen extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length: 5,
      child: Scaffold(
        appBar: AppBar(
          bottom: DefaultTabBarBuilder(
              builder: (_context, currentIndex, onTapIndex) {
                return ProgressTapBar.number(
                  onTap: onTapIndex,
                  currentIndex: currentIndex,
                  length: 5,
                );
              }
          ),
        ),
        body: TabBarView(
          children: List.generate(5, (index) {
            return Container(
              color: index%2 == 0 ? Colors.yellow : Colors.red,
            );
          }),
        ),
        bottomNavigationBar: DefaultTabBarBuilder(
            builder: (_context, currentIndex, onTapIndex) {
              return BottomNavigationBar(
                onTap: onTapIndex,
                currentIndex: currentIndex,
                items: [
                  BottomNavigationBarItem(
                    icon: Icon(Icons.access_time),
                    title: Text("CIAO"),
                  ),
                  BottomNavigationBarItem(
                    icon: Icon(Icons.access_time),
                    title: Text("CIAO"),
                  ),
                  BottomNavigationBarItem(
                    icon: Icon(Icons.access_time),
                    title: Text("CIAO"),
                  ),
                  BottomNavigationBarItem(
                    icon: Icon(Icons.access_time),
                    title: Text("CIAO"),
                  ),
                  BottomNavigationBarItem(
                    icon: Icon(Icons.access_time),
                    title: Text("CIAO"),
                  ),
                ],
              );
            }
        ),
      ),
    );
  }
}
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter project.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_swiper, photo_view, rubber

More

Packages that depend on easy_widget