mirrored_repositories/Aplikasi-Manajemen-Keuangan-v2/lib
import 'package:flutter/material.dart';

class ErrorMessage extends StatelessWidget {
  final String msg;
  final VoidCallback onPressed;

  ErrorMessage({required this.msg, required this.onPressed});

  @override
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        Text("Upps error\n$msg"),
        OutlinedButton(
          onPressed: onPressed,
          child: Text(
            "Try Again",
            style: TextStyle(color: Colors.lightBlue),
          ),
        )
      ],
    );
  }
}