Git Product home page Git Product logo

hornhuang / easy_tab_controller Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 295 KB

A TabBarController that is easy to use for flutter developers. ๐Ÿฅฐ It supports various styles of page navigation, and you can also use it to customize your favorite styles. ๐Ÿป๐Ÿป

License: MIT License

Dart 67.17% Kotlin 0.53% Ruby 11.45% Swift 4.94% Objective-C 0.16% HTML 15.75%
flutter dart flutterweb google tabbarcontroller android ios web

easy_tab_controller's Introduction

easy_tab_controller

A user-friendly TabBarController widget for flutter developer.

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

The plugin project was generated without specifying the --platforms flag, no platforms are currently supported. To add platforms, run flutter create -t plugin --platforms <platforms> . under the same directory. You can also find a detailed instruction on how to add platforms in the pubspec.yaml at https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platforms.

Installing

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  easy_tab_controller: ^1.0.1

Using

You can see more information in example

    EasyTabController(
      location: WebTabLocation.left,
      tabs: [
        TabItemBuilder(
          icon: Icon(Icons.directions_car),
          title: "Android",
        ),
        TabItemBuilder(
          icon: Icon(Icons.directions_bike),
          title: "iOS",
        ),
      ],
      body:[
        Center(
          child: Text(""),
        ),
        Center(
          child: Text(""),
        ),
      ],
    );

Preview

Welcome to my person website: hornhuang.github.io you can see it when your browser become narrow ๏ฝž

Version

Here are changes for every version.

the first version prepare basic functions for you, it not only support tabs click-switch, but also support all direction for tabs shown.

  • Page display and switch.
  • Direction between tabs and pages.

Good news! i add the example code for you. this version has been support to add placeholder for page (as a background). Even better, you can customize the style of your own tags.

  • Perfect example code.
  • Add placeholder to page.
  • Users can customize the tab style.
  • use get to reconstruction this project.

MIT License

Copyright (c) 2021 hornhuang

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

easy_tab_controller's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.