Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC
🌉 bridged from !flutter@programming.dev by Tidepool
Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC
🌉 bridged from !flutter@programming.dev by Tidepool
I rebuilt pubstats.dev with Jaspr. It is a lot faster now.
Hey there. I rebuilt https://pubstats.dev/ with Jaspr. It's a loooooot faster now. Also if you haven't heard of this site before you are able to set up alerts for when your package stats change. It's very useful for getting notified if your package loses pub points and needs updated!
foreground_service_isolate: Spawn an isolate in an Android Foreground Service
Hey there. I just released a plugin that helps you spawn an isolate in an Android Foreground Service. The isolate stays alive even if the main activity is killed. You can easily communicate with and reconnect to the isolate using my isolate_channel package.
Flutter debugging on iOS
I've only ever built Android/Web apps with Flutter, but I had a request to get one of my apps working on iPhone. I knew I wasn't going to have fun before I started, and I wasn't wrong. But I managed to get an Apple Developer Account, jump through the hoops for adhoc distribution profile and certificates, built an account at Codemagic and succeeded to get build to work, managed to downgrade Flutter until I could get an iOS 12.0 build to install on an iPhone6, but now it fails when it loads and I have no clue how to troubleshoot this.
If it were android, I'd have it hooked up to my dev station and run debug version to monitor, but this inscrutable chunk of plastic and glass doesn't seem to work that way. I don't have a Mac box to dev on, so I'm left with running CI builds that I pull down via Diawi to the device, but it's a black box from there.
Is there a way to do anything useful on a Linux dev station with these things?
God, if Google's "developer registration" is anything like this nightmare, I'm going to work on helping dev a Linux phone fulltime.
Cloud Gallery: All Your Memories in One Spot
Hey Flutter Devs!! Say hello to Cloud Gallery—your new favorite way to manage photos and videos! The open-source Flutter app offers seamless Google Drive and Dropbox integration, ensuring your memories stay safe, organized, and always within your reach. Key Features 🌟 • Sync Across Platforms with Automatic Backups • Effortless File Transfers and Organized Storage • Cross-Device and Cross-Platform Compatibility • Secure and User-Friendly Experience Available now on both Android and iOS! • iOS: https://apps.apple.com/in/app/cloud-gallery/id6480052005 • Android: https://play.google.com/store/apps/details?id=com.canopas.cloud_gallery We’d love to hear your thoughts and ideas to improve Cloud Gallery! Explore the Project!! https://github.com/canopas/cloud-gallery
Hive CE documentation site
Hello again! I have finally deployed a version of the Hive documentation site updated to reflect all the changes in Hive CE. This should serve as a single source of truth for the best practices when using Hive CE, as well as a more accessible getting started guide for developers unfamiliar with the original Hive package.
Please have a look and let me know what you think!
The Hive CE Inspector DevTools extension is released in version 2.13.0
After many months of work, it is finally here! You can now use the Hive CE Inspector DevTools extension to quickly view the contents of any Hive box open in your application with live updates. See a video of the inspector in action here: https://github.com/IO-Design-Team/hive_ce/issues/52#issuecomment-3300976432 The inspector builds upon previous work by automatically reading the Hive schema (hive_adapters.g.yaml) from your project and using it to deserialize raw box data into a human-readable format. This does mean, however, that your project must be using the GenerateAdapters annotation to generate type adapters. Data created by HiveType annotations and custom adapters will only be viewable as raw binary data. Please try it out and let me know your thoughts!
go_router custom transition performance
I'm trying to implement the OpenContainer transition for go_router in Flutter. It seems like no matter what I do, the end result is choppy. :/ I'm using the native Transition widgets as well as the relatively new SnapshotWidget, but to no avail. Should I maybe use a custom painter? Would that improve performance? Please take a look at the code below and let me know if you see any ways that I could improve performance. ——— Here's my attempt at an OpenContainer transition for go_router:
import 'package:flutter/material.dart';
import 'package:your_project_name_xxx/ui_models/container_transition_extra.dart';
class ContainerTransition extends StatefulWidget {
final ContainerTransitionExtra extra;
final Animation<double> animation;
final Widget? sourceWidget;
final Widget targetWidget;
const ContainerTransition({
super.key,
required this.extra,
required this.animation,
required this.sourceWidget,
required this.targetWidget,
});
@override
State<ContainerTransition> createState() => _ContainerTransitionState();
}
class _ContainerTransitionState extends State<ContainerTransition> {
static final _toTween = Tween<double>(begin: 0, end: 1);
static final _fromTween = Tween<double>(begin: 1, end: 0);
late SnapshotController _snapshotController;
late CurvedAnimation _curvedAnimation;
late CurvedAnimation _sourceAnimation;
late CurvedAnimation _targetAnimation;
late RelativeRect? _sourcePosition;
late Animation<double> _scrimOpacityAnimation;
late Animation<double> _sourceOpacityAnimation;
late Animation<double> _targetOpacityAnimation;
late Animation<BorderRadius?> _containerRadiusAnimation;
late Animation<RelativeRect> _containerPositionAnimation;
@override
void initState() {
super.initState();
_sourcePosition = widget.extra.tween.begin;
_snapshotController = SnapshotController(allowSnapshotting: true);
_curvedAnimation = CurvedAnimation(
parent: widget.animation,
curve: Curves.easeInOut,
);
_curvedAnimation.addStatusListener((status) {
if (status.isAnimating) {
_snapshotController.allowSnapshotting = true;
} else if (status.isCompleted || status.isDismissed) {
_snapshotController.allowSnapshotting = false;
}
});
_sourceAnimation = CurvedAnimation(
parent: _curvedAnimation,
curve: Interval(0, 1 / 3),
);
_targetAnimation = CurvedAnimation(
parent: _curvedAnimation,
curve: Interval(1 / 3, 1),
);
_scrimOpacityAnimation = _toTween.animate(_sourceAnimation);
_sourceOpacityAnimation = _fromTween.animate(_sourceAnimation);
_targetOpacityAnimation = _toTween.animate(_targetAnimation);
_containerRadiusAnimation = BorderRadiusTween(
begin: BorderRadius.circular(widget.extra.containerRadius),
end: BorderRadius.zero)
.animate(_curvedAnimation);
_containerPositionAnimation = _curvedAnimation.drive(widget.extra.tween);
}
@override
void dispose() {
_snapshotController.dispose();
_sourceAnimation.dispose();
_targetAnimation.dispose();
_curvedAnimation.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return Stack(
children: [
Positioned.fill(
child: FadeTransition(
opacity: _scrimOpacityAnimation,
child: ColoredBox(color: widget.extra.scrimColor),
),
),
PositionedTransition(
rect: _containerPositionAnimation,
child: DecoratedBox(
decoration: BoxDecoration(
borderRadius: _containerRadiusAnimation.value,
color: widget.extra.containerColor,
),
child: FadeTransition(
opacity: _targetOpacityAnimation,
child: widget.targetWidget,
),
),
),
if (_sourcePosition != null)
Positioned.fromRelativeRect(
rect: _sourcePosition!,
child: FadeTransition(
opacity: _sourceOpacityAnimation,
child: widget.sourceWidget,
),
),
],
);
}
}Here's how I'm building the route:
Page<T> buildContainerRoute<T>(
BuildContext context,
GoRouterState state,
Ref ref,
Widget child,
) {
final containerExtra = state.extra;
if (containerExtra is ContainerTransitionExtra) {
final registryTag = containerExtra.sourceBuilderTag;
final registryBuilder =
registryTag != null ? SourceBuilderRegistry().get(registryTag) : null;
if (registryBuilder != null) {
if (registryBuilder.wasUsedAlready) {
SourceBuilderRegistry().unregister(registryTag!);
} else {
SourceBuilderRegistry().markAsUsed(registryTag!);
}
}
return CustomTransitionPage<T>(
key: state.pageKey,
child: child,
transitionDuration: Durations.medium2,
reverseTransitionDuration: Durations.medium1,
transitionsBuilder: (context, animation, secondaryAnimation, child) {
return ContainerTransition(
animation: animation,
extra: containerExtra,
sourceWidget:
Center(child: registryBuilder?.registryItem.call(context)),
targetWidget: ClipRect(
child: OverflowBox(
alignment: Alignment.topCenter,
maxWidth: containerExtra.cachedMaxWidth,
maxHeight: containerExtra.cachedMaxHeight,
child: child,
),
),
);
},
);
} else {
if (!kIsWeb && Platform.isAndroid) {
return MaterialPage(key: state.pageKey, child: child);
} else {
return CupertinoPage(key: state.pageKey, child: child);
}
}
}One Year Of learning flutter:
It has been a year since I decided to start learning Flutter [https://programming.dev/post/186393](Original Post), and it has been an amazing experience. Throughout this year, I managed to land an internship as a Flutter developer, get a decent job as a Flutter developer, and graduate with a computer science degree. So for anyone who is hesitating to start learning Flutter out of fear of the job market, I can tell you not to worry, there are a lot of jobs available. Some good resources to start with are the official Flutter documentation (which is incredible), as well as the official Flutter YouTube channel. Finally, thanks to everyone who helped me when I was starting with Flutter, and good luck to all those who are just getting started.
How's your apps performance with lower-end devices?
My phone (Samsung A14) is low-end, and lags while using an app made with Flutter.
Installing flutter on linux immutable distro
Hi! I'm a flutter developer and I've recently switched from Ubuntu to Bluefin (based on Fedora Silverblue)
I was trying to install flutter and all the dependencies it asks for when running flutter doctor and while for clang++, cmake and ninja I have been able to install them with Homebrew (brew install llvm cmake ninja) and the warning went away, flutter seems not to detect GTK 3.0 development libraries when installed through homebrew (brew install gtk+3)
After having looked a little bit online, I've seen that the problem is probably that it's searching the libraries in the wrong place and in fact even when I run pkg-config --modversion gtk+-3.0 I see the library as missing. Therefore, I tried setting the PKG_CONFIG_PATH env variable to the folder where brew installed my libraries (/home/linuxbrew/.linuxbrew/opt/gtk+3/lib/pkgconfig) and after that the output of the pkg-config program above is the one expected.
However, this doesn't seem to fix the issue with flutter doctor... why? where should I specify this path for flutter to notice it then?
EDIT: I found out that I was almost right! The PKG_CONFIG_PATH env variable is what flutter looks at to find GTK-3 libraries, but should be set to /home/linuxbrew/.linuxbrew/lib/pkgconfig (if pkg-config has been installed through brew as I did) and then everything will work properly.
GroupTrack – Your Family’s Safety Companion! 👫
Crafted with love and powered by Flutter, GroupTrack ensures your family stays connected and secure. With a sleek design and solid architecture, GroupTrack keeps your loved ones close effortlessly — no matter the distance. Features You'll Love: • Create & Join Spaces • Live Location Tracking & Sharing • Place Notifications & Real-Time Chat Available now on Play Store! 👇 https://play.google.com/store/apps/details?id=com.canopas.yourspace Upcoming Security Enhancements We’re stepping up our game to prioritize your privacy with: ✔ Signal Protocol for secure data transmission ✔ AES-256 Client-Side Encryption ✔ Zero-Knowledge Architecture for utmost privacy ✔ Unique Encryption Keys per user and space Let’s keep your loved ones close, connected, and safe! ❤️ We value your feedback and ideas to make it even better! Explore the Project!! 👇 https://github.com/canopas/group-track-flutter
What’s new in Flutter 3.32
• Hot reload on the web (Experimental). • New Expansible widget that makes it easier to create widgets that expand and collapse. • Many Material and Cupertino additions. • Several accessibility improvements. • Progress on multi-window support. • Desktop thread merging. • New Flutter Property Editor for IDEs. ——— Dart update here: https://kbin.earth/m/dart@programming.dev/t/1358229
An update on Dart macros & data serialization
After considering the opportunity cost — in particular, the features we could be shipping to the community instead — we’ve made the difficult decision to stop our work on macros.