Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.38 KB | None | 0 0
  1.   Widget _body(MainModel model, BuildContext context) {
  2.     return Stack(
  3.       children: <Widget>[
  4.         ClipPath(
  5.           child: Container(
  6.             color: _color.withOpacity(0.8),
  7.           ),
  8.           clipper: GetClipper(),
  9.         ),
  10.         Positioned.fill(
  11.           child: Center(
  12.             child: Column(
  13.               children: <Widget>[
  14.                 _buildAvatar(model, _color),
  15.                 SizedBox(height: 90.0),
  16.                 Center(
  17.                   child: Row(
  18.                     mainAxisAlignment: MainAxisAlignment.center,
  19.                     children: <Widget>[
  20.                       BuildString(model.student.name, 20, FontStyle.normal,
  21.                           FontWeight.bold),
  22.                       SizedBox(width: 5),
  23.                       BuildString(model.student.surname, 20, FontStyle.normal,
  24.                           FontWeight.bold),
  25.                       SizedBox(width: 5),
  26.                       Text('${model.school.type + model.student.course}',
  27.                           style: TextStyle(
  28.                               fontSize: 20, fontWeight: FontWeight.bold)),
  29.                     ],
  30.                   ),
  31.                 ),
  32.                 SizedBox(height: 20.0),
  33.                 Center(child: BuildString(model.school.instituteName))
  34.               ],
  35.             ),
  36.           ),
  37.         ),
  38.       ],
  39.     );
  40.   }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement