Skip to content

Commit

Permalink
update: formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulasri committed Mar 8, 2021
1 parent 418f1e7 commit 46f58de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import 'package:flutter/widgets.dart';
import 'application.dart';

Expand Down
6 changes: 1 addition & 5 deletions lib/bubble_tab_indicator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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) {
Expand All @@ -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) &
Expand Down

0 comments on commit 46f58de

Please sign in to comment.