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/util/translations_delegate_base.dart';
|
||||||
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.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:flutter/material.dart';
|
||||||
|
import 'package:hexcolor/hexcolor.dart';
|
||||||
|
|
||||||
class AddSickLeavScreen extends StatelessWidget {
|
class AddSickLeavScreen extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return AppScaffold(
|
return AppScaffold(
|
||||||
appBarTitle: TranslationBase.of(context).sickleave,
|
appBarTitle: TranslationBase.of(context).sickleave,
|
||||||
body: Center(
|
body: new Builder(builder: (context) {
|
||||||
|
return Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
padding: EdgeInsets.all(20),
|
padding: EdgeInsets.all(40),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
border: Border.all(
|
border: Border.all(color: HexColor('#B8382C'), width: 4),
|
||||||
color: Colors.red[500],
|
borderRadius: BorderRadius.all(Radius.circular(100))),
|
||||||
|
child: IconButton(
|
||||||
|
icon: Icon(
|
||||||
|
Icons.add,
|
||||||
|
size: 35,
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.all(Radius.circular(20))),
|
onPressed: () {
|
||||||
child: IconButton(icon: Icon(Icons.add), onPressed: null),
|
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