29 lines
788 B
Dart
29 lines
788 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:game_tracker/core/custom_theme.dart';
|
|
|
|
Widget PrimaryOutlinedButton({required String text, required onPressed}) {
|
|
return SizedBox(
|
|
height: 65,
|
|
child: OutlinedButton(
|
|
onPressed: onPressed,
|
|
style: OutlinedButton.styleFrom(
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.circular(16.0),
|
|
),
|
|
backgroundColor: CustomTheme.primaryColor,
|
|
),
|
|
child: SizedBox(
|
|
width: double.infinity,
|
|
child: Text(
|
|
text,
|
|
textAlign: TextAlign.center,
|
|
softWrap: true,
|
|
overflow: TextOverflow.ellipsis,
|
|
maxLines: 2,
|
|
style: const TextStyle(color: Colors.white, fontSize: 15),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|