|
| 1 | +import 'package:flutter/material.dart'; |
| 2 | +import 'package:flutter_screenutil/flutter_screenutil.dart'; |
| 3 | + |
| 4 | +class LoadingState extends StatelessWidget { |
| 5 | + const LoadingState({Key? key}) : super(key: key); |
| 6 | + |
| 7 | + @override |
| 8 | + Widget build(BuildContext context) { |
| 9 | + return ListView.builder( |
| 10 | + shrinkWrap: true, |
| 11 | + itemCount: 8, |
| 12 | + physics: const AlwaysScrollableScrollPhysics(), |
| 13 | + itemBuilder: (context, index) { |
| 14 | + return Row( |
| 15 | + mainAxisSize: MainAxisSize.min, |
| 16 | + crossAxisAlignment: CrossAxisAlignment.start, |
| 17 | + children: <Widget>[ |
| 18 | + const Padding( |
| 19 | + padding: EdgeInsets.fromLTRB(25, 15, 15, 0), |
| 20 | + child: CircleAvatar( |
| 21 | + backgroundColor: Color(0xFFE5E5E5), |
| 22 | + radius: 18, |
| 23 | + ), |
| 24 | + ), |
| 25 | + Column( |
| 26 | + crossAxisAlignment: CrossAxisAlignment.start, |
| 27 | + mainAxisSize: MainAxisSize.min, |
| 28 | + children: <Widget>[ |
| 29 | + Container( |
| 30 | + margin: const EdgeInsets.fromLTRB(0, 15, 0, 10), |
| 31 | + width: 150.w, |
| 32 | + decoration: BoxDecoration( |
| 33 | + borderRadius: BorderRadius.circular(2), |
| 34 | + color: const Color(0xFFE5E5E5), |
| 35 | + ), |
| 36 | + height: 14, |
| 37 | + ), |
| 38 | + Container( |
| 39 | + margin: const EdgeInsets.fromLTRB(0, 0, 0, 10), |
| 40 | + width: 250.w, |
| 41 | + height: 20, |
| 42 | + decoration: BoxDecoration( |
| 43 | + borderRadius: BorderRadius.circular(2), |
| 44 | + color: const Color(0xFFE5E5E5), |
| 45 | + ), |
| 46 | + ), |
| 47 | + Container( |
| 48 | + margin: const EdgeInsets.fromLTRB(0, 0, 0, 15), |
| 49 | + width: 250.w, |
| 50 | + height: 20, |
| 51 | + decoration: BoxDecoration( |
| 52 | + borderRadius: BorderRadius.circular(2), |
| 53 | + color: const Color(0xFFE5E5E5), |
| 54 | + ), |
| 55 | + ) |
| 56 | + ], |
| 57 | + ) |
| 58 | + ], |
| 59 | + ); |
| 60 | + }, |
| 61 | + ); |
| 62 | + } |
| 63 | +} |
0 commit comments