mobile bluesky app made with flutter lazurite.stormlightlabs.org/
mobile bluesky flutter
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: run formatter

+24 -82
+3 -2
lib/features/notifications/bloc/notification_bloc.dart
··· 15 15 }) : _notificationDomainService = 16 16 notificationDomainService ?? 17 17 NotificationDomainService( 18 - notificationRepository: notificationRepository ?? 18 + notificationRepository: 19 + notificationRepository ?? 19 20 (throw ArgumentError('Either notificationDomainService or notificationRepository is required')), 20 21 ), 21 - super(const NotificationState.initial()) { 22 + super(const NotificationState.initial()) { 22 23 on<NotificationsRequested>(_onNotificationsRequested); 23 24 on<NotificationsRefreshed>(_onNotificationsRefreshed); 24 25 on<NotificationsPageLoaded>(_onNotificationsPageLoaded);
+20 -76
lib/objectbox.g.dart
··· 9 9 import 'dart:typed_data'; 10 10 11 11 import 'package:flat_buffers/flat_buffers.dart' as fb; 12 - import 'package:objectbox/internal.dart' 13 - as obx_int; // generated code can access "internal" functionality 12 + import 'package:objectbox/internal.dart' as obx_int; // generated code can access "internal" functionality 14 13 import 'package:objectbox/objectbox.dart' as obx; 15 14 import 'package:objectbox_flutter_libs/objectbox_flutter_libs.dart'; 16 15 ··· 25 24 lastPropertyId: const obx_int.IdUid(7, 8430059363224486218), 26 25 flags: 0, 27 26 properties: <obx_int.ModelProperty>[ 28 - obx_int.ModelProperty( 29 - id: const obx_int.IdUid(1, 2023883478741600837), 30 - name: 'id', 31 - type: 6, 32 - flags: 1, 33 - ), 27 + obx_int.ModelProperty(id: const obx_int.IdUid(1, 2023883478741600837), name: 'id', type: 6, flags: 1), 34 28 obx_int.ModelProperty( 35 29 id: const obx_int.IdUid(2, 3549521277099340373), 36 30 name: 'postUri', ··· 38 32 flags: 2080, 39 33 indexId: const obx_int.IdUid(1, 4682420966856057445), 40 34 ), 41 - obx_int.ModelProperty( 42 - id: const obx_int.IdUid(3, 115219216497020018), 43 - name: 'accountDid', 44 - type: 9, 45 - flags: 0, 46 - ), 47 - obx_int.ModelProperty( 48 - id: const obx_int.IdUid(4, 2084589381727568380), 49 - name: 'source', 50 - type: 9, 51 - flags: 0, 52 - ), 53 - obx_int.ModelProperty( 54 - id: const obx_int.IdUid(5, 4494373135934411874), 55 - name: 'indexedText', 56 - type: 9, 57 - flags: 0, 58 - ), 35 + obx_int.ModelProperty(id: const obx_int.IdUid(3, 115219216497020018), name: 'accountDid', type: 9, flags: 0), 36 + obx_int.ModelProperty(id: const obx_int.IdUid(4, 2084589381727568380), name: 'source', type: 9, flags: 0), 37 + obx_int.ModelProperty(id: const obx_int.IdUid(5, 4494373135934411874), name: 'indexedText', type: 9, flags: 0), 59 38 obx_int.ModelProperty( 60 39 id: const obx_int.IdUid(6, 7790743710249736574), 61 40 name: 'embedding', ··· 64 43 indexId: const obx_int.IdUid(2, 7649439792027952584), 65 44 hnswParams: obx_int.ModelHnswParams(dimensions: 384, distanceType: 2), 66 45 ), 67 - obx_int.ModelProperty( 68 - id: const obx_int.IdUid(7, 8430059363224486218), 69 - name: 'embeddedAt', 70 - type: 12, 71 - flags: 0, 72 - ), 46 + obx_int.ModelProperty(id: const obx_int.IdUid(7, 8430059363224486218), name: 'embeddedAt', type: 12, flags: 0), 73 47 ], 74 48 relations: <obx_int.ModelRelation>[], 75 49 backlinks: <obx_int.ModelBacklink>[], ··· 146 120 final accountDidOffset = fbb.writeString(object.accountDid); 147 121 final sourceOffset = fbb.writeString(object.source); 148 122 final indexedTextOffset = fbb.writeString(object.indexedText); 149 - final embeddingOffset = object.embedding == null 150 - ? null 151 - : fbb.writeListFloat32(object.embedding!); 123 + final embeddingOffset = object.embedding == null ? null : fbb.writeListFloat32(object.embedding!); 152 124 fbb.startTable(8); 153 125 fbb.addInt64(0, object.id); 154 126 fbb.addOffset(1, postUriOffset); ··· 163 135 objectFromFB: (obx.Store store, ByteData fbData) { 164 136 final buffer = fb.BufferContext(fbData); 165 137 final rootOffset = buffer.derefObject(0); 166 - final idParam = const fb.Int64Reader().vTableGet( 167 - buffer, 168 - rootOffset, 169 - 4, 170 - 0, 171 - ); 172 - final postUriParam = const fb.StringReader( 173 - asciiOptimization: true, 174 - ).vTableGet(buffer, rootOffset, 6, ''); 175 - final accountDidParam = const fb.StringReader( 176 - asciiOptimization: true, 177 - ).vTableGet(buffer, rootOffset, 8, ''); 178 - final sourceParam = const fb.StringReader( 179 - asciiOptimization: true, 180 - ).vTableGet(buffer, rootOffset, 10, ''); 181 - final indexedTextParam = const fb.StringReader( 182 - asciiOptimization: true, 183 - ).vTableGet(buffer, rootOffset, 12, ''); 138 + final idParam = const fb.Int64Reader().vTableGet(buffer, rootOffset, 4, 0); 139 + final postUriParam = const fb.StringReader(asciiOptimization: true).vTableGet(buffer, rootOffset, 6, ''); 140 + final accountDidParam = const fb.StringReader(asciiOptimization: true).vTableGet(buffer, rootOffset, 8, ''); 141 + final sourceParam = const fb.StringReader(asciiOptimization: true).vTableGet(buffer, rootOffset, 10, ''); 142 + final indexedTextParam = const fb.StringReader(asciiOptimization: true).vTableGet(buffer, rootOffset, 12, ''); 184 143 final embeddingParam = const fb.ListReader<double>( 185 144 fb.Float32Reader(), 186 145 lazy: false, 187 146 ).vTableGetNullable(buffer, rootOffset, 14); 188 147 final embeddedAtParam = DateTime.fromMicrosecondsSinceEpoch( 189 - (const fb.Int64Reader().vTableGet(buffer, rootOffset, 16, 0) / 1000) 190 - .round(), 148 + (const fb.Int64Reader().vTableGet(buffer, rootOffset, 16, 0) / 1000).round(), 191 149 ); 192 150 final object = EmbeddedPost( 193 151 id: idParam, ··· 210 168 /// [EmbeddedPost] entity fields to define ObjectBox queries. 211 169 class EmbeddedPost_ { 212 170 /// See [EmbeddedPost.id]. 213 - static final id = obx.QueryIntegerProperty<EmbeddedPost>( 214 - _entities[0].properties[0], 215 - ); 171 + static final id = obx.QueryIntegerProperty<EmbeddedPost>(_entities[0].properties[0]); 216 172 217 173 /// See [EmbeddedPost.postUri]. 218 - static final postUri = obx.QueryStringProperty<EmbeddedPost>( 219 - _entities[0].properties[1], 220 - ); 174 + static final postUri = obx.QueryStringProperty<EmbeddedPost>(_entities[0].properties[1]); 221 175 222 176 /// See [EmbeddedPost.accountDid]. 223 - static final accountDid = obx.QueryStringProperty<EmbeddedPost>( 224 - _entities[0].properties[2], 225 - ); 177 + static final accountDid = obx.QueryStringProperty<EmbeddedPost>(_entities[0].properties[2]); 226 178 227 179 /// See [EmbeddedPost.source]. 228 - static final source = obx.QueryStringProperty<EmbeddedPost>( 229 - _entities[0].properties[3], 230 - ); 180 + static final source = obx.QueryStringProperty<EmbeddedPost>(_entities[0].properties[3]); 231 181 232 182 /// See [EmbeddedPost.indexedText]. 233 - static final indexedText = obx.QueryStringProperty<EmbeddedPost>( 234 - _entities[0].properties[4], 235 - ); 183 + static final indexedText = obx.QueryStringProperty<EmbeddedPost>(_entities[0].properties[4]); 236 184 237 185 /// See [EmbeddedPost.embedding]. 238 - static final embedding = obx.QueryHnswProperty<EmbeddedPost>( 239 - _entities[0].properties[5], 240 - ); 186 + static final embedding = obx.QueryHnswProperty<EmbeddedPost>(_entities[0].properties[5]); 241 187 242 188 /// See [EmbeddedPost.embeddedAt]. 243 - static final embeddedAt = obx.QueryDateNanoProperty<EmbeddedPost>( 244 - _entities[0].properties[6], 245 - ); 189 + static final embeddedAt = obx.QueryDateNanoProperty<EmbeddedPost>(_entities[0].properties[6]); 246 190 }
+1 -4
test/shared/presentation/widgets/animated_refresh_indicator_test.dart
··· 17 17 refreshStarted = true; 18 18 return completer.future; 19 19 }, 20 - child: ListView( 21 - physics: const AlwaysScrollableScrollPhysics(), 22 - children: const [SizedBox(height: 1200)], 23 - ), 20 + child: ListView(physics: const AlwaysScrollableScrollPhysics(), children: const [SizedBox(height: 1200)]), 24 21 ), 25 22 ), 26 23 ),