Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
5.1 kB
1
Indexable
Never
    Padding(
                                padding: EdgeInsets.only(
                                    right: 10, top: 15, bottom: 5, left: 4),
                                child: Container(
                                  padding: EdgeInsets.symmetric(
                                    horizontal: 10,
                                    vertical: 15,
                                  ),
                                  width: Get.width - 40,
                                  decoration: BoxDecoration(
                                    color: Colors.white,
                                    borderRadius: BorderRadius.circular(10),
                                    boxShadow: [
                                      BoxShadow(
                                        blurRadius: 10.0,
                                        color: Colors.black12,
                                      )
                                    ],
                                  ),
                                  child: Column(
                                    children: [
                                      Row(
                                        mainAxisAlignment:
                                            MainAxisAlignment.spaceBetween,
                                        children: [
                                          KText(
                                            text: 'Leave Type',
                                            fontSize: 16,
                                            bold: true,
                                            maxLines: 2,
                                            textOverflow: TextOverflow.visible,
                                          ),
                                          KText(
                                            text: e.leaveType!,
                                            fontSize: 16,
                                            bold: true,
                                            maxLines: 2,
                                            textOverflow: TextOverflow.visible,
                                          ),
                                        ],
                                      ),
                                      Divider(
                                        color: Colors.black26,
                                      ),
                                      Row(
                                        mainAxisAlignment:
                                            MainAxisAlignment.spaceBetween,
                                        children: [
                                          KText(text: 'Balance as of Now'),
                                          KText(
                                            text: e.totalBalane != null
                                                ? e.totalBalane.toString()
                                                : '0',
                                            bold: true,
                                          )
                                        ],
                                      ),
                                      SizedBox(
                                        height: 05,
                                      ),
                                      Row(
                                        mainAxisAlignment:
                                            MainAxisAlignment.spaceBetween,
                                        children: [
                                          KText(text: 'Leave Request'),
                                          KText(
                                              bold: true,
                                              text: e.leaveRequest.toString())
                                        ],
                                      ),
                                      Divider(
                                        color: Colors.black26,
                                      ),
                                      Row(
                                        mainAxisAlignment:
                                            MainAxisAlignment.spaceBetween,
                                        children: [
                                          KText(
                                              text:
                                                  'Balance After leave taken'),
                                          KText(
                                            text:
                                                e.balanceAfterLeave.toString(),
                                            bold: true,
                                          )
                                        ],
                                      ),
                                      SizedBox(
                                        height: 20,
                                      ),
                                    ],
                                  ),
                                ),
                              );