Merge branch 'elham' into 'master'
handelCatcherrorCase See merge request Cloud_Solution/doctor_app_flutter!59merge-requests/60/head
commit
37f709b24b
@ -0,0 +1,28 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/*
|
||||
*@author: Elham Rababah
|
||||
*@Date:12/5/2020
|
||||
*@param: error
|
||||
*@return: StatelessWidget
|
||||
*@desc: DrAppEmbeddedError class
|
||||
*/
|
||||
class DrAppEmbeddedError extends StatelessWidget {
|
||||
const DrAppEmbeddedError({
|
||||
Key key,
|
||||
@required this.error,
|
||||
}) : super(key: key);
|
||||
|
||||
final String error;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Center(
|
||||
child: Text(
|
||||
error,
|
||||
style: TextStyle(color: Theme.of(context).errorColor),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue