buildConfirmButton method

Widget buildConfirmButton(
  1. BuildContext context
)

The confirm button for the preview section. 预览区的确认按钮

Implementation

Widget buildConfirmButton(BuildContext context) {
  return MaterialButton(
    minWidth: 20,
    height: 32,
    padding: const EdgeInsets.symmetric(horizontal: 20),
    color: theme.colorScheme.secondary,
    shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.circular(3),
    ),
    onPressed: createAssetEntityAndPop,
    materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
    child: Text(
      Singleton.textDelegate.confirm,
      style: TextStyle(
        color: theme.textTheme.bodyLarge?.color,
        fontSize: 17,
        fontWeight: FontWeight.normal,
      ),
    ),
  );
}