18 lines
369 B
Dart
18 lines
369 B
Dart
|
|
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));
|
||
|
|
}
|
||
|
|
}
|