ui fix
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:tanami_app/core/styles/app_color.dart';
|
||||
import 'package:tanami_app/shared/components/text_widget.dart';
|
||||
|
||||
@@ -15,6 +16,40 @@ class ButtonWidget {
|
||||
}
|
||||
|
||||
//Elevated Button
|
||||
Widget textBorderBtn({
|
||||
required String text,
|
||||
required Color clr,
|
||||
Color? txtClr,
|
||||
Color? borderClr,
|
||||
required VoidCallback function,
|
||||
}) {
|
||||
return InkWell(
|
||||
onTap: function,
|
||||
child: Container(
|
||||
margin: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
),
|
||||
width: 1.sw,
|
||||
height: 56.h,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(30),
|
||||
color: clr,
|
||||
border: Border.all(
|
||||
width: 1,
|
||||
color: borderClr!,
|
||||
)),
|
||||
child: Center(
|
||||
child: TextWidget().text14W700(
|
||||
text,
|
||||
clr: txtClr ?? AppColor.plainBlack,
|
||||
textDecoration: TextDecoration.underline,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
//Elevated Button
|
||||
Widget elevatedBtn({
|
||||
required String text,
|
||||
required Color clr,
|
||||
|
||||
Reference in New Issue
Block a user