mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
fix line tab switcher updates
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/rendering.dart';
|
||||
|
||||
@@ -29,7 +30,7 @@ class _LineTabSwitcherState extends State<LineTabSwitcher> {
|
||||
void didUpdateWidget(covariant LineTabSwitcher oldWidget) {
|
||||
super.didUpdateWidget(oldWidget);
|
||||
|
||||
if (oldWidget.tabs.length != widget.tabs.length) {
|
||||
if (!listEquals(oldWidget.tabs, widget.tabs)) {
|
||||
textWidgetKeys = List.generate(widget.tabs.length, (_) => GlobalKey());
|
||||
textWidgetSizes = [];
|
||||
totalWidth = 0;
|
||||
|
||||
Reference in New Issue
Block a user