Skip to content

Commit

Permalink
Merge pull request #23 from matsuyani556/feature/infinite-scroll-list…
Browse files Browse the repository at this point in the history
…-view

Implemented InfiniteScrollListView and Fixed Tests
  • Loading branch information
matsuyani556 authored Nov 14, 2024
2 parents fcb3165 + c89d645 commit 8ddd786
Show file tree
Hide file tree
Showing 5 changed files with 3,652 additions and 40 deletions.
1 change: 1 addition & 0 deletions packages/patapata_core/lib/patapata_widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ library patapata_widgets;
export 'src/widgets/standard_app.dart';
export 'src/widgets/screen_layout.dart';
export 'src/widgets/platform_dialog.dart';
export 'src/widgets/infinite_scroll_list_view.dart';
13 changes: 8 additions & 5 deletions packages/patapata_core/lib/src/log.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'dart:ui';

import 'package:flutter/foundation.dart';
Expand Down Expand Up @@ -976,9 +977,10 @@ class NativeThrowable {
final tLine = tMatch.group(tLineGroup);
return Frame(
Uri.file(
'${tMatch.group(tPackageGroup) ?? '<NoPackage>'}${(tFileGroup != null ? '/${tMatch.group(tFileGroup)}' : null) ?? '/<NoFileName>'}'
.replaceAll(' ', '<space>'),
windows: false),
'${tMatch.group(tPackageGroup) ?? '<NoPackage>'}${(tFileGroup != null ? '/${tMatch.group(tFileGroup)}' : null) ?? '/<NoFileName>'}'
.replaceAll(' ', '<space>'),
windows: false,
),
tLine != null ? int.tryParse(tLine) : null,
null,
tMatch.group(tMethodGroup),
Expand Down Expand Up @@ -1025,9 +1027,10 @@ class NativeThrowable {
final tPratformStackTrace = List.generate(tFrames?.length ?? 0, (index) {
final tFrame = tFrames![index];
try {
final tPathSeparator = (kIsWeb) ? '/' : Platform.pathSeparator;
switch (defaultTargetPlatform) {
case TargetPlatform.android:
final tLibrary = tFrame.library.split('/');
final tLibrary = tFrame.library.split(tPathSeparator);
final tLine = tFrame.line != null ? ':${tFrame.line}' : '';
final tPackageGroup = tLibrary[0].replaceAll('<NoPackage>', '');
final tFileGroup = tLibrary[1].replaceAll('<NoFileName>', '');
Expand All @@ -1036,7 +1039,7 @@ class NativeThrowable {
return ('$tPackageGroup${tPackageGroup.isNotEmpty ? '.' : ''}$tMethodGroup($tFileGroup$tLine)')
.replaceAll('<space>', ' ');
case TargetPlatform.iOS:
final tLibrary = tFrame.library.split('/');
final tLibrary = tFrame.library.split(tPathSeparator);
final tLine = tFrame.line != null ? ' + ${tFrame.line}' : '';
final tPackageGroup = tLibrary[0].replaceAll('<NoPackage>', '');
final tMethodGroup = tFrame.member ?? '';
Expand Down
Loading

0 comments on commit 8ddd786

Please sign in to comment.