From 46f58de83b209fb5aae9bbfe0ad4ceeb5ddcbb94 Mon Sep 17 00:00:00 2001 From: vipulasri Date: Mon, 8 Mar 2021 14:15:34 +0530 Subject: [PATCH] update: formatted code --- example/lib/main.dart | 1 - lib/bubble_tab_indicator.dart | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 630b375..89ef2bc 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,4 +1,3 @@ - import 'package:flutter/widgets.dart'; import 'application.dart'; diff --git a/lib/bubble_tab_indicator.dart b/lib/bubble_tab_indicator.dart index 0c1496f..67ef8b5 100644 --- a/lib/bubble_tab_indicator.dart +++ b/lib/bubble_tab_indicator.dart @@ -59,8 +59,7 @@ class BubbleTabIndicator extends Decoration { } class _BubblePainter extends BoxPainter { - _BubblePainter(this.decoration, VoidCallback? onChanged) - : super(onChanged); + _BubblePainter(this.decoration, VoidCallback? onChanged) : super(onChanged); final BubbleTabIndicator decoration; @@ -72,8 +71,6 @@ class _BubblePainter extends BoxPainter { TabBarIndicatorSize get tabBarIndicatorSize => decoration.tabBarIndicatorSize; Rect _indicatorRectFor(Rect rect, TextDirection textDirection) { - - Rect indicator = padding.resolve(textDirection).inflateRect(rect); if (tabBarIndicatorSize == TabBarIndicatorSize.tab) { @@ -90,7 +87,6 @@ class _BubblePainter extends BoxPainter { @override void paint(Canvas canvas, Offset offset, ImageConfiguration configuration) { - assert(configuration.size != null); final Rect rect = Offset( offset.dx, (configuration.size!.height / 2) - indicatorHeight / 2) &