Widget _loading(BuildContext context) { return Row( children: [ const SizedBox( width: 16, ), Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Padding( padding: const EdgeInsets.only(bottom: 16), child: TDText( '加载默认提示', font: TDTheme.of(context).fontBodyMedium, textColor: TDTheme.of(context).fontGyColor2.withOpacity(0.6), ), ), Container( height: 72, width: 72, clipBehavior: Clip.hardEdge, decoration: BoxDecoration(borderRadius: BorderRadius.circular(TDTheme.of(context).radiusDefault)), child: Container( alignment: Alignment.center, color: TDTheme.of(context).grayColor2, child: Icon( TDIcons.ellipsis, size: 22, color: TDTheme.of(context).fontGyColor3, ) ) ), // 实际组件写法如下:上面仅为加载展示 // const TDImage( // imgUrl: // 'https://images.pexels.com/photos/842711/pexels-photo-842711.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2', // type: TDImageType.roundedSquare, // ), ], ), const SizedBox( width: 24, ), Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Padding( padding: const EdgeInsets.only(bottom: 16), child: TDText( '加载自定义提示', font: TDTheme.of(context).fontBodyMedium, textColor: TDTheme.of(context).fontGyColor2.withOpacity(0.6), ), ), Container( height: 72, width: 72, clipBehavior: Clip.hardEdge, decoration: BoxDecoration(borderRadius: BorderRadius.circular(TDTheme.of(context).radiusDefault)), child: Container( alignment: Alignment.center, color: TDTheme.of(context).grayColor2, child: RotationTransition( turns: animation, alignment: Alignment.center, child: TDCircleIndicator( color: TDTheme.of(context).brandNormalColor, size: 18, lineWidth: 3, )) ) ), // 实际组件写法如下:上面仅为加载展示 // TDImage( // imgUrl: // 'https://images.pexels.com/photos/842711/pexels-photo-842711.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2', // loadingWidget: RotationTransition( // turns: animation, // alignment: Alignment.center, // child: TDCircleIndicator( // color: TDTheme.of(context).brandNormalColor, // size: 18, // lineWidth: 3, // )), // type: TDImageType.roundedSquare, // ), ], ), const SizedBox( width: 24, ), ], ); }