基础组件库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

70 rivejä
2.2 KiB

  1. import 'package:flutter/cupertino.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:shimmer/shimmer.dart';
  4. class WithdrawPageSketelon extends StatelessWidget {
  5. @override
  6. Widget build(BuildContext context) {
  7. return Shimmer.fromColors(
  8. baseColor: Colors.grey[300],
  9. highlightColor: Colors.grey[100],
  10. child: Container(
  11. margin: EdgeInsets.only(left: 12.5, right: 12.5, top: 8),
  12. child: Column(
  13. crossAxisAlignment: CrossAxisAlignment.start,
  14. children: <Widget>[
  15. Container(
  16. width: double.infinity,
  17. height: 97,
  18. decoration: BoxDecoration(
  19. color: Colors.white, borderRadius: BorderRadius.circular(10)),
  20. ),
  21. Container(
  22. margin: EdgeInsets.only(top: 8, bottom: 8),
  23. height: 20,
  24. color: Colors.white,
  25. width: 200,
  26. ),
  27. GridView.builder(
  28. shrinkWrap: true,
  29. physics: NeverScrollableScrollPhysics(),
  30. gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
  31. crossAxisCount: 3,
  32. crossAxisSpacing: 10,
  33. mainAxisSpacing: 10,
  34. childAspectRatio: 2.5,
  35. ),
  36. itemCount: 6,
  37. itemBuilder: (BuildContext context, int index) {
  38. return Container(
  39. decoration: BoxDecoration(
  40. color: Colors.white,
  41. borderRadius: BorderRadius.circular(5)),
  42. );
  43. },
  44. ),
  45. Container(
  46. margin: EdgeInsets.only(top: 28, bottom: 0),
  47. height: 60,
  48. color: Colors.white,
  49. width: double.infinity,
  50. ),
  51. Container(
  52. margin: EdgeInsets.only(top: 8, bottom: 0),
  53. height: 20,
  54. color: Colors.white,
  55. width: 200,
  56. ),
  57. Container(
  58. margin: EdgeInsets.only(top: 8, bottom: 0),
  59. height: 20,
  60. color: Colors.white,
  61. width: 150,
  62. ),
  63. ],
  64. ),
  65. ),
  66. );
  67. }
  68. }