sick leave
parent
e5d542f1d0
commit
4f96cff585
@ -1,27 +1,58 @@
|
||||
import 'package:doctor_app_flutter/screens/sick-leave/sick_leave.dart';
|
||||
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
|
||||
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hexcolor/hexcolor.dart';
|
||||
|
||||
class AddSickLeavScreen extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AppScaffold(
|
||||
appBarTitle: TranslationBase.of(context).sickleave,
|
||||
body: Center(
|
||||
body: new Builder(builder: (context) {
|
||||
return Center(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Container(
|
||||
padding: EdgeInsets.all(20),
|
||||
padding: EdgeInsets.all(40),
|
||||
decoration: BoxDecoration(
|
||||
border: Border.all(
|
||||
color: Colors.red[500],
|
||||
border: Border.all(color: HexColor('#B8382C'), width: 4),
|
||||
borderRadius: BorderRadius.all(Radius.circular(100))),
|
||||
child: IconButton(
|
||||
icon: Icon(
|
||||
Icons.add,
|
||||
size: 35,
|
||||
),
|
||||
borderRadius: BorderRadius.all(Radius.circular(20))),
|
||||
child: IconButton(icon: Icon(Icons.add), onPressed: null),
|
||||
onPressed: () {
|
||||
openSickLeave(context);
|
||||
}),
|
||||
),
|
||||
Padding(
|
||||
child: AppText(
|
||||
TranslationBase.of(context).noSickLeaveApplied,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
padding: EdgeInsets.all(10),
|
||||
),
|
||||
AppText(
|
||||
TranslationBase.of(context).applyNow,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: HexColor('#B8382C'),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
openSickLeave(BuildContext context) {
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return new Container(child: SickLeaveScreen());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue