#first commit
This commit is contained in:
3
packages/cc_ui_kit/lib/cc_ui_kit.dart
Normal file
3
packages/cc_ui_kit/lib/cc_ui_kit.dart
Normal file
@@ -0,0 +1,3 @@
|
||||
library cc_ui_kit;
|
||||
|
||||
export 'src/cc_primary_button.dart';
|
||||
17
packages/cc_ui_kit/lib/src/cc_primary_button.dart
Normal file
17
packages/cc_ui_kit/lib/src/cc_primary_button.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class CCPrimaryButton extends StatelessWidget {
|
||||
final String text;
|
||||
final VoidCallback onPressed;
|
||||
|
||||
const CCPrimaryButton({
|
||||
super.key,
|
||||
required this.text,
|
||||
required this.onPressed,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ElevatedButton(onPressed: onPressed, child: Text(text));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user