ant_design_flutter 0.0.1+5 ant_design_flutter: ^0.0.1+5 copied to clipboard
A Flutter UI framework designed for web / pc application, contains some high quality widgets.
import 'package:ant_design_flutter/ant_design_flutter.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> {
int count = 0;
@override
Widget build(BuildContext context) {
return AntApp(
home: Scaffold(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('You have clicked the button $count times'),
const SizedBox(height: 8),
Button(
type: ButtonType.primary,
onClick: () => setState(() => count++),
child: const Text('Click'),
),
],
),
),
),
);
}
}