最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

Flutter ToggleButtons 一組切換按鈕

2022-10-27 00:10 作者:早起的年輕人  | 我要投稿


A set of toggle buttons.

The list of children are laid out along direction. The state of each button is controlled by isSelected, which is a list of bools that determine if a button is in an unselected or selected state. They are both correlated by their index in the list. The length of isSelected has to match the length of the children list.

1 本文章效果

2 ToggleButtons 基本使用

ToggleButtons 是 一組切換按鈕。

ToggleButtons中的children 屬性配置的是一個(gè)數(shù)組,可以裝填多個(gè) widget,顯示出來的按鈕組是按順序排列的。

每個(gè)按鈕的狀態(tài)由isSelected控制,這是一個(gè)bool列表,用于確定按鈕是處于未選中狀態(tài)還是已選中狀態(tài)。

2.1 測試用例頁面

2.2 ToggleButtons 的核心使用代碼

2.3 constraints 屬性配置

配置 BoxConstraints ,BoxConstraints 就是繼承自 Constraints 然后有最小和最大的寬高,最小值都是0,最大值都是無限大。

完畢

Flutter ToggleButtons 一組切換按鈕的評論 (共 條)

分享到微博請遵守國家法律
乌拉特中旗| 西青区| 土默特左旗| 武乡县| 大安市| 南汇区| 灌云县| 玛曲县| 措美县| 岳池县| 隆回县| 西平县| 石狮市| 绥棱县| 绥中县| 新绛县| 连南| 营山县| 炎陵县| 颍上县| 土默特左旗| 梧州市| 德州市| 新郑市| 额济纳旗| 寿光市| 和林格尔县| 静宁县| 弋阳县| 昔阳县| 金堂县| 太谷县| 甘南县| 黄龙县| 兴城市| 抚顺市| 望谟县| 静乐县| 南召县| 浪卡子县| 双辽市|