UI 22
A simple Flutter package for an awesome UI 22.
import 'package:flutter/material.dart';
import 'package:ui_22/Button.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Component UI')),
body: const ExampleScreen(),
),
);
}
}
class ExampleScreen extends StatelessWidget {
const ExampleScreen({super.key});
@override
Widget build(BuildContext context) {
return Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
ButtonAction(
onPressed: () async {
debugPrint("hello");
},
title: 'Example')
],
),
);
}
}