Table of Contents
Resizable Tabs
A lightweight and elegant Flutter widget to create resizable tab layouts with a draggable divider.
Explore on pub.flutter-io.cn »
View Demo · Report Bug · Request Feature
About The Project
resizable_tabs is a Flutter package that provides a split-view layout with two tabs (or panels) separated by a draggable divider.
Perfect for IDE-like layouts, dashboards, editors, and responsive designs.
Features
xresizablexLightweightxWorks in both horizontal and vertical layoutsxresponsivecustomizable divider
Built With
Getting Started
To use the resizable_tabs package in your Flutter project, follow these steps:
Prerequisites
Make sure you have Flutter installed on your machine:
- Terminal
flutter --version
Installation
- Add the package to your
pubspec.yaml:
- pubspec.yaml
dependencies: resizable_tabs: ^1.1.0
- Install packages:
- Terminal
flutter pub get
- Import it in your Dart file:
- Dart file
import 'package:resizable_tabs/resizable_tabs.dart';
Usage
Here’s a simple example of creating a resizable tabs layout:
Scaffold(
body: ResizableTabs(
tabOne: Container(
color: Colors.blue.shade200,
child: const Center(child: Text('Left Tab')),
),
tabTwo: Container(
color: Colors.green.shade200,
child: const Center(child: Text('Right Tab')),
),
),
),
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/feature.name) - Commit your Changes (
git commit -m 'Add some feature.name') - Push to the Branch (
git push origin feature.name) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE.txt for more information.
Contact
Mourad BARKOUCH - 2126 82 69 00 09 - mouradbarkouch@gmail.com
Project Link: Click here!