nextElevatedButtonStyleFrom function
Implementation
nextElevatedButtonStyleFrom(BuildContext context, { Color? color, Color? textColor } ) => ElevatedButton.styleFrom(
foregroundColor: (textColor==null)?Colors.white:textColor, backgroundColor: (color==null)?Theme.of(context).primaryColor:color, padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 15),
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topRight: Radius.circular(30),
bottomRight: Radius.circular(30),
),
),
);