国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(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 一組切換按鈕的評論 (共 條)

分享到微博請遵守國家法律
稷山县| 罗定市| 长宁县| 通榆县| 昌邑市| 高密市| 麻城市| 泗洪县| 开江县| 瑞丽市| 邢台县| 桃江县| 嘉义县| 开远市| 兴隆县| 右玉县| 松桃| 天峻县| 股票| 班戈县| 南澳县| 南康市| 衡南县| 旬邑县| 建水县| 蚌埠市| 海兴县| 青岛市| 城固县| 淮北市| 六盘水市| 瑞金市| 广昌县| 栖霞市| 师宗县| 化德县| 永修县| 钦州市| 永昌县| 广平县| 阳城县|