Skip to content

Commit 787abf3

Browse files
committed
fix: new driver images loading indicator
1 parent bd2626e commit 787abf3

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

lib/api/driver_components.dart

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,16 @@ class DriverImageProvider extends StatelessWidget {
250250
alignment: Alignment.topCenter,
251251
child: CachedNetworkImage(
252252
imageUrl: imageUrl,
253-
placeholder: (context, url) => const SizedBox(
254-
width: 120,
255-
child: LoadingIndicatorUtil(),
253+
placeholder: (context, url) => Transform.scale(
254+
scale: 0.25,
255+
alignment: Alignment.topCenter,
256+
child: SizedBox(
257+
width: 120,
258+
child: Padding(
259+
padding: EdgeInsets.only(right: 20),
260+
child: LoadingIndicatorUtil(),
261+
),
262+
),
256263
),
257264
errorBuilder: (context, url, error) =>
258265
const Icon(Icons.error_outlined),

0 commit comments

Comments
 (0)