// import 'package:flutter/material.dart'; // import 'package:tangheem/classes/colors.dart'; // // class GeneralDialog extends StatelessWidget { // final String message; // GeneralDialog({Key key, this.message}) : super(key: key); // // @override // Widget build(BuildContext context) { // return Dialog( // insetPadding: EdgeInsets.symmetric(horizontal: 60.0, vertical: 24.0), // shape: RoundedRectangleBorder( // borderRadius: BorderRadius.circular(12), // ), // elevation: 0, // backgroundColor: Colors.transparent, // child: Container( // width: double.infinity, // decoration: BoxDecoration( // color: ColorConsts.primaryBlue, // borderRadius: BorderRadius.circular(16), // ), // padding: EdgeInsets.symmetric(vertical: 32, horizontal: 16), // child: Column( // mainAxisSize: MainAxisSize.min, // children: [ // Text( // message ?? "للحصول على تجربة أفضل ، يرجى إمالة هاتفك واستخدام التطبيق في الوضع الأفقي", // textAlign: TextAlign.center, // style: TextStyle(color: Colors.white), // ), // SizedBox(height: 32), // SizedBox( // width: double.infinity, // height: 40, // child: TextButton( // onPressed: () => Navigator.pop(context), // style: TextButton.styleFrom( // primary: Colors.white, // padding: EdgeInsets.all(2), // backgroundColor: ColorConsts.secondaryPink, // textStyle: TextStyle(fontSize: 14, fontFamily: "DroidKufi"), // shape: RoundedRectangleBorder( // borderRadius: BorderRadius.circular(6.0), // ), // ), // child: Text("نعم"), // ), // ), // ], // ), // ), // ); // } // }