You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
848 B
33 lines
848 B
import 'package:flutter/material.dart';
|
|
|
|
buildSelector(BuildContext context, String title, double size,
|
|
List<Color> color, Function tapped, Color textColor) {
|
|
return InkWell(
|
|
onTap: tapped,
|
|
child: Container(
|
|
width: size - size * 0.55,
|
|
height: 42.5,
|
|
child: Center(
|
|
child: Text(
|
|
title,
|
|
style: TextStyle(
|
|
color: textColor,
|
|
),
|
|
),
|
|
),
|
|
decoration: BoxDecoration(
|
|
gradient: LinearGradient(
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
colors: color,
|
|
),
|
|
borderRadius: BorderRadius.only(
|
|
topRight: Radius.circular(25),
|
|
topLeft: Radius.circular(25),
|
|
bottomLeft: Radius.circular(25),
|
|
bottomRight: Radius.circular(25),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|