v1.0.7selectable_container
適用於 Flutter 的可選擇容器。點擊時,容器的一個角落會顯示一個圖標。
53喜歡 142近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
適用於 Flutter 的可選擇容器
以下為英文專案原文快照,最新內容請造訪 GitHub。
A Selectable Container for Flutter. Easy to implement and customize.

To use plugin, just import package import 'package:selectable_container/selectable_container.dart';
Check de example directory to access the project that implements the image shown above.
import 'package:flutter/material.dart';
import 'package:selectable_container/selectable_container.dart';
class SimpleExamplePage extends StatefulWidget {
@override
_SimpleExamplePageState createState() => _SimpleExamplePageState();
}
class _SimpleExamplePageState extends State<SimpleExamplePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Selectable Container'),
),
body: Column(
children: <Widget>[
Text(
'Default container',
style: TextStyle(fontSize: 22, fontWeight: FontWeight.bold),
),
SelectableContainer(
selected: _selected
onValueChanged: (newValue) {
setState(() {
_selected = newValue;
});
},
child: Text('Tap me'),
padding: 16.0,
),
],
),
);
}
}
依賴清單 2 項
{"sdk":"flutter"}{"sdk":"flutter"}先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗