Showing
6 changed files
with
7 additions
and
15 deletions
| @@ -141,27 +141,22 @@ Future<Document> generateDocument(PdfPageFormat format) async { | @@ -141,27 +141,22 @@ Future<Document> generateDocument(PdfPageFormat format) async { | ||
| 141 | Padding(padding: const EdgeInsets.only(top: 10)), | 141 | Padding(padding: const EdgeInsets.only(top: 10)), |
| 142 | Text('Electrotyper', | 142 | Text('Electrotyper', |
| 143 | textScaleFactor: 1.2, | 143 | textScaleFactor: 1.2, |
| 144 | - style: Theme.of(context) | ||
| 145 | - .defaultTextStyle | ||
| 146 | - .copyWith( | ||
| 147 | - fontWeight: FontWeight.bold, | ||
| 148 | - color: green)), | 144 | + style: Theme.of(context).defaultTextStyle.copyWith( |
| 145 | + fontWeight: FontWeight.bold, color: green)), | ||
| 149 | Padding(padding: const EdgeInsets.only(top: 20)), | 146 | Padding(padding: const EdgeInsets.only(top: 20)), |
| 150 | Row( | 147 | Row( |
| 151 | crossAxisAlignment: CrossAxisAlignment.start, | 148 | crossAxisAlignment: CrossAxisAlignment.start, |
| 152 | mainAxisAlignment: MainAxisAlignment.spaceBetween, | 149 | mainAxisAlignment: MainAxisAlignment.spaceBetween, |
| 153 | children: <Widget>[ | 150 | children: <Widget>[ |
| 154 | Column( | 151 | Column( |
| 155 | - crossAxisAlignment: | ||
| 156 | - CrossAxisAlignment.start, | 152 | + crossAxisAlignment: CrossAxisAlignment.start, |
| 157 | children: <Widget>[ | 153 | children: <Widget>[ |
| 158 | Text('568 Port Washington Road'), | 154 | Text('568 Port Washington Road'), |
| 159 | Text('Nordegg, AB T0M 2H0'), | 155 | Text('Nordegg, AB T0M 2H0'), |
| 160 | Text('Canada, ON'), | 156 | Text('Canada, ON'), |
| 161 | ]), | 157 | ]), |
| 162 | Column( | 158 | Column( |
| 163 | - crossAxisAlignment: | ||
| 164 | - CrossAxisAlignment.start, | 159 | + crossAxisAlignment: CrossAxisAlignment.start, |
| 165 | children: <Widget>[ | 160 | children: <Widget>[ |
| 166 | Text('+1 403-721-6898'), | 161 | Text('+1 403-721-6898'), |
| 167 | Text('p.charlesbois@yahoo.com'), | 162 | Text('p.charlesbois@yahoo.com'), |
| @@ -184,17 +179,14 @@ Future<Document> generateDocument(PdfPageFormat format) async { | @@ -184,17 +179,14 @@ Future<Document> generateDocument(PdfPageFormat format) async { | ||
| 184 | decoration: const BoxDecoration( | 179 | decoration: const BoxDecoration( |
| 185 | border: BoxBorder(left: true, color: green, width: 2)), | 180 | border: BoxBorder(left: true, color: green, width: 2)), |
| 186 | ), | 181 | ), |
| 187 | - Column( | ||
| 188 | - crossAxisAlignment: CrossAxisAlignment.start, | ||
| 189 | - children: <Widget>[ | 182 | + Column(crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ |
| 190 | ClipOval( | 183 | ClipOval( |
| 191 | child: Container( | 184 | child: Container( |
| 192 | width: 100, | 185 | width: 100, |
| 193 | height: 100, | 186 | height: 100, |
| 194 | color: lightGreen, | 187 | color: lightGreen, |
| 195 | - child: profileImage == null | ||
| 196 | - ? Container() | ||
| 197 | - : Image(profileImage))) | 188 | + child: |
| 189 | + profileImage == null ? Container() : Image(profileImage))) | ||
| 198 | ]) | 190 | ]) |
| 199 | ]), | 191 | ]), |
| 200 | )); | 192 | )); |
-
Please register or login to post a comment