@ -175,3 +187,98 @@ class AppBarWidget extends StatelessWidget with PreferredSizeWidget {
@override
SizegetpreferredSize=>Size(double.maxFinite,60);
}
classRobotIconextendsStatefulWidget{
@override
_RobotIconcreateState()=>_RobotIcon();
}
class_RobotIconextendsState<RobotIcon>{
varevent=RobotProvider();
boolisAnimation=false;
@override
voidinitState(){
event.controller.stream.listen((p){
if(p['animationEnable']=='false'){
//setState((){
//if(this.mounted){
this.isAnimation=false;
//}
//});
}
});
setState((){
setAnimation();
});
super.initState();
}
@override
Widgetbuild(BuildContextcontext){
returnPositioned(
child:Column(
children:[
isAnimation
?Container(
height:150,
width:200,
padding:EdgeInsets.all(5),
margin:EdgeInsets.only(right:35.0,bottom:0),
decoration:BoxDecoration(
borderRadius:BorderRadius.circular(10),
color:Colors.white,
boxShadow:[
BoxShadow(color:Colors.black,spreadRadius:1),
],
),
child:TyperAnimatedTextKit(
text:Provider.of<ProjectViewModel>(context,
listen:false)
.isArabic==
true
?"هذه الخدمة تم تصميمها لتتمكن من ربط الملفات الطبية للعائلة بملفك الطبي حتى تتمكن من إدارة سجلاتهم عن طريق تسجيل الدخول إلى ملفك الطبي."
:"Through this service, you will be able to link your family medical files to your medical file so that you can manage their records by login to your medical file.",
textLength:Provider.of<ProjectViewModel>(context,
listen:false)
.isArabic==
true
?"هذه الخدمة تم تصميمها لتتمكن من ربط الملفات الطبية للعائلة بملفك الطبي حتى تتمكن من إدارة سجلاتهم عن طريق تسجيل الدخول إلى ملفك الطبي."
.length
:"Through this service, you will be able to link your family medical files to your medical file so that you can manage their records by login to your medical file."