diff --git a/packages/firebase_timeline_repository/pubspec.yaml b/packages/firebase_timeline_repository/pubspec.yaml index 9f6847d..2ee553b 100644 --- a/packages/firebase_timeline_repository/pubspec.yaml +++ b/packages/firebase_timeline_repository/pubspec.yaml @@ -1,6 +1,6 @@ name: firebase_timeline_repository description: "A new Flutter package project." -version: 6.0.0 +version: 7.0.0 publish_to: none environment: @@ -14,7 +14,7 @@ dependencies: git: url: https://github.com/Iconica-Development/flutter_timeline path: packages/timeline_repository_interface - ref: 6.0.0 + ref: 7.0.0 rxdart: any cloud_firestore: ^5.4.4 diff --git a/packages/flutter_timeline/lib/src/screens/timeline_choose_category_screen.dart b/packages/flutter_timeline/lib/src/screens/timeline_choose_category_screen.dart index f49144d..dafe017 100644 --- a/packages/flutter_timeline/lib/src/screens/timeline_choose_category_screen.dart +++ b/packages/flutter_timeline/lib/src/screens/timeline_choose_category_screen.dart @@ -157,7 +157,7 @@ class CategoryOption extends StatelessWidget { border: Border.all( width: 2, color: addCategory - ? Colors.black.withOpacity(0.3) + ? Colors.black.withValues(alpha: 0.3) : theme.primaryColor, ), borderRadius: BorderRadius.circular(8), @@ -169,7 +169,7 @@ class CategoryOption extends StatelessWidget { Icon( Icons.add, color: addCategory - ? Colors.black.withOpacity(0.3) + ? Colors.black.withValues(alpha: 0.3) : theme.primaryColor, ), ], @@ -183,7 +183,7 @@ class CategoryOption extends StatelessWidget { category, style: theme.textTheme.titleMedium?.copyWith( color: addCategory - ? Colors.black.withOpacity(0.3) + ? Colors.black.withValues(alpha: 0.3) : Colors.black, ), ), diff --git a/packages/flutter_timeline/lib/src/widgets/image_picker.dart b/packages/flutter_timeline/lib/src/widgets/image_picker.dart index 3a6609b..7acad4f 100644 --- a/packages/flutter_timeline/lib/src/widgets/image_picker.dart +++ b/packages/flutter_timeline/lib/src/widgets/image_picker.dart @@ -51,7 +51,7 @@ class _ImagePickerWidgetState extends State { }, child: DecoratedBox( decoration: BoxDecoration( - color: Colors.black.withOpacity(0.5), + color: Colors.black.withValues(alpha: 0.5), borderRadius: BorderRadius.circular(8.0), ), child: const Icon( diff --git a/packages/flutter_timeline/lib/src/widgets/post_info_textfield.dart b/packages/flutter_timeline/lib/src/widgets/post_info_textfield.dart index d2b8c42..82f3aae 100644 --- a/packages/flutter_timeline/lib/src/widgets/post_info_textfield.dart +++ b/packages/flutter_timeline/lib/src/widgets/post_info_textfield.dart @@ -52,7 +52,7 @@ class PostInfoTextfield extends StatelessWidget { ), hintText: hintText, hintStyle: theme.textTheme.bodySmall!.copyWith( - color: theme.textTheme.bodySmall!.color!.withOpacity(0.5), + color: theme.textTheme.bodySmall!.color!.withValues(alpha: 0.5), ), fillColor: Colors.white, filled: true, diff --git a/packages/flutter_timeline/lib/src/widgets/reaction_textfield.dart b/packages/flutter_timeline/lib/src/widgets/reaction_textfield.dart index f91e117..8772e65 100644 --- a/packages/flutter_timeline/lib/src/widgets/reaction_textfield.dart +++ b/packages/flutter_timeline/lib/src/widgets/reaction_textfield.dart @@ -60,7 +60,8 @@ class ReactionTextfield extends StatelessWidget { ), hintText: options.translations.commentFieldHint, hintStyle: theme.textTheme.bodyMedium!.copyWith( - color: theme.textTheme.bodyMedium!.color!.withOpacity(0.5), + color: theme.textTheme.bodyMedium!.color! + .withValues(alpha: 0.5), ), fillColor: Colors.white, filled: true, diff --git a/packages/flutter_timeline/lib/src/widgets/timeline_post.dart b/packages/flutter_timeline/lib/src/widgets/timeline_post.dart index b359ed5..1223c10 100644 --- a/packages/flutter_timeline/lib/src/widgets/timeline_post.dart +++ b/packages/flutter_timeline/lib/src/widgets/timeline_post.dart @@ -250,7 +250,7 @@ class _TimelinePostWidgetState extends State { Text( widget.options.dateFormat(context).format(widget.post.createdAt), style: theme.textTheme.bodySmall?.copyWith( - color: Colors.black.withOpacity(0.5), + color: Colors.black.withValues(alpha: 0.5), ), ), if (widget.post.reactionEnabled) @@ -268,7 +268,7 @@ class _TimelinePostWidgetState extends State { child: Text( translations.viewPostTitle, style: theme.textTheme.titleSmall - ?.copyWith(color: Colors.black.withOpacity(0.5)), + ?.copyWith(color: Colors.black.withValues(alpha: 0.5)), ), ), ], diff --git a/packages/flutter_timeline/pubspec.yaml b/packages/flutter_timeline/pubspec.yaml index 574a43d..2247473 100644 --- a/packages/flutter_timeline/pubspec.yaml +++ b/packages/flutter_timeline/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_timeline description: "A new Flutter package project." -version: 6.0.0 +version: 7.0.0 publish_to: none environment: @@ -18,7 +18,7 @@ dependencies: git: url: https://github.com/Iconica-Development/flutter_timeline path: packages/timeline_repository_interface - ref: 6.0.0 + ref: 7.0.0 cached_network_image: ^3.4.1 intl: 0.19.0 diff --git a/packages/timeline_repository_interface/pubspec.yaml b/packages/timeline_repository_interface/pubspec.yaml index fc0700b..bfb909c 100644 --- a/packages/timeline_repository_interface/pubspec.yaml +++ b/packages/timeline_repository_interface/pubspec.yaml @@ -1,6 +1,6 @@ name: timeline_repository_interface description: "A new Flutter package project." -version: 6.0.0 +version: 7.0.0 publish_to: none environment: