You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.0 KiB
Dart
69 lines
2.0 KiB
Dart
|
6 years ago
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
||
|
|
import 'package:doctor_app_flutter/providers/project_provider.dart';
|
||
|
|
import 'package:doctor_app_flutter/widgets/shared/rounded_container_widget.dart';
|
||
|
|
import 'package:flutter/material.dart';
|
||
|
|
import 'package:hexcolor/hexcolor.dart';
|
||
|
|
import 'package:provider/provider.dart';
|
||
|
|
|
||
|
|
/*
|
||
|
|
*@author: Amjad Amireh Modify for new design created by Mohammad Aljammal
|
||
|
|
*@Date:Modify date 21/5/2020 Original date 27/4/2020
|
||
|
|
*@param: Widget
|
||
|
|
*@return:
|
||
|
|
*@desc: Card With Bg Widget
|
||
|
|
*/
|
||
|
|
|
||
|
|
class CardWithBgWidgetNew extends StatelessWidget {
|
||
|
|
final Widget widget;
|
||
|
|
|
||
|
|
CardWithBgWidgetNew({@required this.widget});
|
||
|
|
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
ProjectProvider projectProvider = Provider.of(context);
|
||
|
|
return Container(
|
||
|
|
margin: EdgeInsets.symmetric(vertical: 10.0),
|
||
|
|
width: double.infinity,
|
||
|
|
decoration: BoxDecoration(
|
||
|
|
borderRadius: BorderRadius.all(
|
||
|
|
Radius.circular(10.0),
|
||
|
|
),
|
||
|
|
// border: Border.all(color: Hexcolor('#707070'), width: 2.0),
|
||
|
|
),
|
||
|
|
child: Material(
|
||
|
|
borderRadius: BorderRadius.all(Radius.circular(10.0)),
|
||
|
|
color: Hexcolor('#FFFFFF'),
|
||
|
|
child: Stack(
|
||
|
|
children: [
|
||
|
|
if (projectProvider.isArabic)
|
||
|
|
Positioned(
|
||
|
|
child: Container(
|
||
|
|
width: 10,
|
||
|
|
color: Hexcolor('#FFFFFF'),
|
||
|
|
|
||
|
|
),
|
||
|
|
bottom: 0,
|
||
|
|
top: 0,
|
||
|
|
right: 0,
|
||
|
|
)
|
||
|
|
else
|
||
|
|
Positioned(
|
||
|
|
child: Container(
|
||
|
|
width: 10,
|
||
|
|
color: Hexcolor('#FFFFFF'),
|
||
|
|
),
|
||
|
|
bottom: 0,
|
||
|
|
top: 0,
|
||
|
|
left: 0,
|
||
|
|
),
|
||
|
|
Container(
|
||
|
|
padding: EdgeInsets.all(15.0),
|
||
|
|
margin: EdgeInsets.only(left: 10),
|
||
|
|
child: widget)
|
||
|
|
],
|
||
|
|
),
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|