refactored and condensed technical documentation and comments across the codebase to improve readability
This commit is contained in:
@@ -19,12 +19,10 @@ class QrShareView extends StatefulWidget {
|
||||
|
||||
class _QrShareViewState extends State<QrShareView>
|
||||
with SingleTickerProviderStateMixin {
|
||||
// Owning the TabController explicitly (instead of DefaultTabController) is
|
||||
// a workaround for a Flutter framework bug where TabBarView's
|
||||
// didChangeDependencies issues a jumpToPage mid-build, whose scroll
|
||||
// notification then calls setState on _TabStyle while the frame is still
|
||||
// being built — only reproduces reliably with a bottomNavigationBar in the
|
||||
// Scaffold underneath.
|
||||
// Own the TabController explicitly (not DefaultTabController) to dodge a
|
||||
// Flutter bug: TabBarView's didChangeDependencies fires jumpToPage mid-build,
|
||||
// whose scroll notification then calls setState on _TabStyle during the frame
|
||||
// — only reproduces with a bottomNavigationBar in the Scaffold underneath.
|
||||
late final TabController _tabController = TabController(
|
||||
length: 2,
|
||||
vsync: this,
|
||||
|
||||
Reference in New Issue
Block a user