This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/widgets.dart'; | |
class SliverLayoutDelegate extends SliverChildBuilderDelegate { | |
SliverLayoutDelegate({ | |
bool addAutomaticKeepAlives = true, | |
bool addRepaintBoundaries = true, | |
bool addSemanticIndexes = true, | |
SemanticIndexCallback? semanticIndexCallback, | |
int semanticIndexOffset = 0, | |
required int childCount, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/widgets.dart'; | |
import 'dart:math'; | |
class SnappingListView extends StatefulWidget { | |
final Axis scrollDirection; | |
final ScrollController? controller; | |
final IndexedWidgetBuilder? itemBuilder; | |
final List<Widget>? children; | |
final int? itemCount; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/widgets.dart'; | |
class ColumnBuilder extends StatelessWidget { | |
final IndexedWidgetBuilder itemBuilder; | |
final MainAxisAlignment mainAxisAlignment; | |
final MainAxisSize mainAxisSize; | |
final CrossAxisAlignment crossAxisAlignment; | |
final TextDirection? textDirection; | |
final VerticalDirection verticalDirection; | |
final int itemCount; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
import 'package:cloud_firestore/cloud_firestore.dart'; | |
import 'package:cloud_firestore_mocks/cloud_firestore_mocks.dart'; | |
import 'package:collection/collection.dart'; | |
extension MockFirestoreTesting on MockFirestoreInstance { | |
/// Populates the [MockFirestoreInstance] with data from a JSON-String. | |
Future<void> populate(String jsonSource) async { | |
final Map<String, dynamic> sourceMap = json.decode(jsonSource); |