You can get current index by DefaultTabController.of(context).index; as follows: ... appBar: AppBar( bottom: TabBar( tabs: [ Tab(~), Tab(~) ] ...
確定! 回上一頁