Merge branch 'main' into uncategorized
This commit is contained in:
commit
593ad5e83d
1 changed files with 5 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:photos/theme/ente_theme.dart';
|
||||||
|
|
||||||
class PlaceHolderWidget extends StatelessWidget {
|
class PlaceHolderWidget extends StatelessWidget {
|
||||||
const PlaceHolderWidget(
|
const PlaceHolderWidget(
|
||||||
|
@ -16,18 +17,19 @@ class PlaceHolderWidget extends StatelessWidget {
|
||||||
final key = _getCacheKey(count, columns);
|
final key = _getCacheKey(count, columns);
|
||||||
if (!_gridViewCache.containsKey(key)) {
|
if (!_gridViewCache.containsKey(key)) {
|
||||||
_gridViewCache[key] = GridView.builder(
|
_gridViewCache[key] = GridView.builder(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.only(top: 2),
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
physics: const NeverScrollableScrollPhysics(),
|
physics: const NeverScrollableScrollPhysics(),
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
return Container(
|
return Container(
|
||||||
margin: const EdgeInsets.all(2.0),
|
color: getEnteColorScheme(context).fillFaint,
|
||||||
color: Colors.grey[900],
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
itemCount: count,
|
itemCount: count,
|
||||||
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
||||||
crossAxisCount: columns,
|
crossAxisCount: columns,
|
||||||
|
crossAxisSpacing: 2,
|
||||||
|
mainAxisSpacing: 2,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue