nextElevatedButtonStyleFrom function

dynamic nextElevatedButtonStyleFrom(
  1. BuildContext context, {
  2. Color? color,
  3. Color? textColor,
})

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),
    ),
  ),
);