A nested TabBarView overscroll unites outer TabBarView scroll event

Related tags

Animation union_tabs
Overview

union_tabs

Screenshot

A nested TabBarView overscroll event unites outer TabBarView scroll event

Getting Started

1.Install

dependencies:
  union_tabs: ^1.0.0+7

2.Import

import 'package:union_tabs/union_tabs.dart';

3.Usage

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text(widget.title),
          bottom: TabBar(
              controller: _controller,
              tabs: tabsText.map((it) => Tab(text: it)).toList()),
        ),
        body: UnionOuterTabBarView( /// outerTabBarView
          controller: _controller,
          children: _createTabContent(),
        ));
  }

  List<Widget> _createTabContent() {
    List<Widget> tabContent = List();
    tabContent.add(Center(child: Text(tabsText[0])));
    final child = Column(
      children: <Widget>[
        TabBar(
            labelColor: Colors.black,
            unselectedLabelColor: Colors.black45,
            controller: _childController,
            tabs: secondTabsText.map((it) => Tab(text: it)).toList()),
        Expanded(
          child: UnionInnerTabBarView( /// innerTabBarView
              controller: _childController,
              children:
                  secondTabsText.map((it) => Center(child: Text(it))).toList()),
        )
      ],
    );
    tabContent.add(child);
    tabContent.add(Center(child: Text(tabsText[2])));
    return tabContent;
  }

More detail see example: main.dart

You might also like...

Flutter file based routing - File based routing and nested layouts for Flutter

Flutter File Based Routing I was inspired by the routing in remix.run with neste

Sep 29, 2022

A BottomNavigationBar for nested routing and advanced features to improve user experience.

A BottomNavigationBar for nested routing and advanced features to improve user experience.

navbar_router 0.1.2 This is the ultimate BottomNavigionBar created by considering the advanced use cases in real world applications. This widget handl

Dec 28, 2022

Return a Stream that emits null and done event when didChangeDependencies is called for the first time.

Return a Stream that emits null and done event when didChangeDependencies is called for the first time.

did_change_dependencies Author: Petrus Nguyแป…n Thรกi Hแปc Return a Stream that emits null and done event when State.didChangeDependencies is called for t

Nov 9, 2022

An android app built using flutter that displays and forecast the specific city Weather and Climate for dynamic time event by collecting the data from API that is provided for free by OPENWEATHER site.

clima_weather_reporter A new Flutter application. Getting Started This project is a starting point for a Flutter application. A few resources to get y

Feb 3, 2022

An event management system.

๐ŸŒŸ Eventour ๐ŸŒŸ ๐Ÿ“Œ The GOTO event management app. โญ What was our motivation? As technology advances, we often aim for newer and better approaches for s

Jan 27, 2022

A StreamBuilder alternative that provides builder and event callbacks

 A StreamBuilder alternative that provides builder and event callbacks

mainstream A StreamBuilder alternative that provides builder and event callbacks. See the Futuristic package for a similar API for working with Future

Apr 9, 2021

A Flutter package allows you to easily implement all calendar UI and calendar event functionality. ๐Ÿ‘Œ๐Ÿ”๐ŸŽ‰

A Flutter package allows you to easily implement all calendar UI and calendar event functionality. ๐Ÿ‘Œ๐Ÿ”๐ŸŽ‰

calendar_view A Flutter package allows you to easily implement all calendar UI and calendar event functionality. For web demo visit Calendar View Exam

Dec 22, 2022

For flutter native plugins, send event to main thread.

native_main_thread A new Flutter plugin. Getting Started This project is a starting point for a Flutter plug-in package, a specialized package that in

Nov 26, 2021

Eventour App : The Event Management System With Flutter

Eventour App : The Event Management System With Flutter

Eventour The one and only event management system. โญ What was our motivation? As technology advances, we often aim for newer and better approaches for

Nov 27, 2021

A Flutter App That Find Party Event

A Flutter App That Find Party Event

EventZ ๐Ÿฅณ ๐ŸŽ‰ Description: Discover events & upcoming events in your city and near you. Get personalized event recommendations! Find events your friend

Jun 30, 2022

Custom_Empty widget is flutter plugin which is designed to notify user about some event.

Custom_Empty widget is flutter plugin which is designed to notify user about some event.

Empty Widget Custom_Empty widget is flutter custom widget which is designed to notify user about some event. Screenshots Screenshots Screenshots Scree

Nov 17, 2022

OneAppFlutter - An official event app for HackRU

OneAppFlutter - An official event app for HackRU

One App Flutter The Official HackRU Flutter App Feel free to show some โค๏ธ and โญ the repo to support the project. Description What is the purpose of th

Dec 10, 2022

Flutter Event app UI design from Dribbble

Flutter Event app UI design from Dribbble

Flutter Event App Flutter event app UI design inspire from Dribble. Design Design from Dribble App UI UI GIF Screen HomePage Detail Implemented Featur

Dec 20, 2022

At its core, Mah-Event lets end-users initiate and find events corresponding to their interests and location

At its core, Mah-Event lets end-users initiate and find events corresponding to their interests and location

Mah-Event Application At its core, Mah-Event lets end-users initiate and find events corresponding to their interests and location. It allows people t

Oct 23, 2022

An Event Bus using Dart Streams for decoupling applications

An Event Bus using Dart Streams for decoupling applications

Event Bus A simple Event Bus using Dart Streams for decoupling applications. GitHub | Pub | Demos and Examples Event Bus Pattern An Event Bus follows

Jan 4, 2023

Realtime chat application interface using Socket.IO for Flutter GDSC event

flutter_socket_chatapp Simplet multi user chat app using Socket.IO and API calls Getting Started This project is a starting point for a Flutter applic

Jun 15, 2022

Flutter Image add drag sort, Image add drag sort, support click event, delete, add, long press drag sort.

Flutter Image add drag sort, Image add drag sort, support click event, delete, add, long press drag sort.

flutter_image_add_drag_sort Flutter Image add drag sort, Image add drag sort, support click event, delete, add, long press drag sort, support video fi

Jun 23, 2020

Flutter application for event manage API- Hiring challenge

Event Manage App Simple flutter application for listing and filtering out events. Setup guide Install Flutter Follow the official guide from the flutt

Oct 25, 2022

scroll to index with fixed/variable row height inside Flutter scrollable widget

scroll-to-index This package provides the scroll to index mechanism for fixed/variable row height for Flutter scrollable widget. Getting Started In th

Jan 6, 2023
Comments
  • ่ท‘ไธ่ตทๆฅๅ•Š

    ่ท‘ไธ่ตทๆฅๅ•Š

    ็Žฏๅขƒ๏ผšFlutter (Channel master, 1.23.0-14.0.pre.75, on Mac OS X 10.15.6 19G2021 x86_64, locale zh-Hans-CN) ้”™่ฏฏ๏ผš โ•โ•โ•โ•โ•โ•โ•โ• Exception caught by widgets library โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• The following _CastError was thrown building NotificationListener: Null check operator used on a null value

    The relevant error-causing widget was: NotificationListener file:///Users/ใ€‚ใ€‚ใ€‚/.pub-cache/hosted/pub.flutter-io.cn/union_tabs-1.0.0+7/lib/src/outer/union_outer_page_view.dart:177:12 When the exception was thrown, this was the stack: #0 ScrollPosition.pixels (package:flutter/src/widgets/scroll_position.dart:166:31) #1 PagePosition.restoreScrollOffset (package:union_tabs/src/notification/scroll_position.dart:92:9) #2 new ScrollPosition (package:flutter/src/widgets/scroll_position.dart:106:7) #3 new ScrollPositionWithSingleContext (package:flutter/src/widgets/scroll_position_with_single_context.dart:55:8) #4 new PagePosition (package:union_tabs/src/notification/scroll_position.dart:26:9) ... โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

    opened by xinkong2000 2
Owner
wilin
Android developer. email: [email protected] ๅ†…ๆŽจ ๅŒ—ไบฌๅฟซๆ‰‹่Œไฝ๏ผŒๆ„Ÿๅ…ด่ถฃ็š„ๅ‘ๆˆ‘็ฎ€ๅŽ†
wilin
a widget provided to the flutter scroll component drop-down refresh and pull up load.

flutter_pulltorefresh Intro a widget provided to the flutter scroll component drop-down refresh and pull up load.support android and ios. If you are C

Jpeng 2.5k Jan 5, 2023
Flutter UI challenge- Parallax scroll effect

Flutter UI Challenge- "Urban Planners" Parallax Scroll About project The application was written based on this great UI concept: https://dribbble.com/

Tomasz Pawlikowski 264 Dec 26, 2022
A NestedScrollView that supports outer scroller to top overscroll.

custom_nested_scroll_view A NestedScrollView that supports outer scroller to top overscroll. ?? Preview Web demo ?? Click Here ?? Problem NestedScroll

null 20 Nov 25, 2022
A powerful official extension library of Tab/TabBar/TabView, which support to scroll ancestor or child Tabs when current is overscroll, and set scroll direction and cache extent.

extended_tabs Language: English | ไธญๆ–‡็ฎ€ไฝ“ A powerful official extension library of Tab/TabBar/TabView, which support to scroll ancestor or child Tabs whe

FlutterCandies 185 Dec 13, 2022
NestedScrollView: extended nested scroll view to fix following issues.

NestedScrollView: extended nested scroll view to fix following issues.

FlutterCandies 457 Jan 4, 2023
An Event-based system, highly inspired by NodeJS's Event Emitter

An Event-based system, highly inspired by NodeJS's Event Emitter. This implementation uses generic types to allow for multiple data types, while still being intuitive.

JUST A SNIPER ใƒ„ 5 Dec 1, 2022
The FlexGrid control provides a powerful and quickly way to display data in a tabular format. It is including that frozened column/row,loading more, high performance and better experience in TabBarView/PageView.

flex_grid Language: English| ไธญๆ–‡็ฎ€ไฝ“ The FlexGrid control provides a powerful and quickly way to display data in a tabular format. It is including that f

FlutterCandies 39 Nov 8, 2022
A Flutter widget for Scrollview, pop when overscroll

overscroll_pop A Flutter widget for Scrollview, pop when overscroll like Instagram, Pinterest, ... Getting Started Include the package to your project

null 22 Dec 21, 2022
Easy-to-use Navigator 2.0 router for web, mobile and desktop. URL-based routing, simple navigation of tabs and nested routes.

Routemaster Hello! Routemaster is an easy-to-use router for Flutter, which wraps over Navigator 2.0... and has a silly name. Features Simple declarati

Tom Gilder 291 Jan 3, 2023
Widget to count the amount of nested widget tree, useful in the dynamic construction of the interface when it is important to know the depth of widget.

widget_tree_depth_counter Widget Tree Depth Counter WidgetTreeDepthCounter is a simple widget to count the amount of nested widget tree, useful in the

Riccardo Cucia 4 Aug 1, 2022