free_check_box 1.0.1
free_check_box: ^1.0.1 copied to clipboard
A dark package that helps you build ring layouts, supported both iOS and Android.
import 'package:example/item.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
resizeToAvoidBottomInset: false,
body: SafeArea(
maintainBottomViewPadding: true,
child: SizedBox(
width: double.infinity,
height: double.infinity,
child: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.only(
left: 30, top: 20, right: 30, bottom: 20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Text(
'CustomCheckBox',
style: TextStyle(
fontSize: 32,
fontWeight: FontWeight.w700,
),
),
ListView(
shrinkWrap: true,
physics: const NeverScrollableScrollPhysics(),
children: _getChildren(),
),
],
),
),
),
),
),
),
);
}
_getChildren() {
List<Widget> children = [];
for (int i = 0; i < 10; i++) {
children.add(
Item(
name: 'Yin',
address: 'BeiJing',
),
);
}
return children;
}
}