Joe Muller Profile Banner
Joe Muller Profile
Joe Muller

@code_ontherocks

Followers
5,132
Following
512
Media
1,132
Statuses
5,740

@aicofounded 🤖 Code on the Rocks 🍹💙 Creator of flutter_fast_cli 🔥 #AICofounded #FlutterDev #ReactJS

Virginia, USA
Joined April 2019
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
@code_ontherocks
Joe Muller
1 year
Shamelessly stealing an idea from @jacksonfall and prompting GPT-4 to help me build a profitable business. I'm going to start with the same prompt and do whatever it asks me to. Let's goooooooo
@JazzFall
Jazz Fall
1 year
I gave GPT-4 a budget of $100 and told it to make as much money as possible. I'm acting as its human liaison, buying anything it says to. Do you think it'll be able to make smart investments and build an online business? Follow along 👀
Tweet media one
3K
15K
101K
44
46
401
@code_ontherocks
Joe Muller
2 years
#Flutter Architect v1 is out! I built a developer tool using #GithubCopilot to make Flutter development even faster. - Quickly build nested widgets - Click to copy common snippets - Create multi-child layouts
18
29
307
@code_ontherocks
Joe Muller
3 years
#Flutter for #Tizen !! I admit there were a handful of gotchas during the setup but this is awesome. I'll be publishing an article on the process later this week 💻 @FlutterDev @TizenExperts @SamsungUS @googledevs #GoogleIO #flutterDev #coding #galaxywatch
11
44
293
@code_ontherocks
Joe Muller
1 year
The new SwiftUI-in-Flutter build is up! ✅ CupertinoApp ✅ CupertinoPageScaffold ✅ CupertinoDynamicColor ✅ CupertinoTextThemeData ✅ CupertinoListSection.insetGrouped I was completely unaware of the depth of Cupertino support in #Flutter ...it's pretty cool!
@timsneath
Tim Sneath
1 year
For those playing along with my fun little SwiftUI challenge, here's the comparison of #SwiftUI and the best #Flutter attempt to date (). 1/
Tweet media one
16
16
218
18
29
255
@code_ontherocks
Joe Muller
2 years
The engineer that came up with this deserves a raise. #flutter #FlutterDev #DartLang #Android #ios @androidstudio
Tweet media one
16
12
235
@code_ontherocks
Joe Muller
3 years
#Flutter Tip: You can add shadows to your UI using the PhysicalModel widget. The PhysicalModel widget "creates a layer underneath your widget that represents the object casting the shadow" @Fitzface
Tweet media one
8
36
232
@code_ontherocks
Joe Muller
3 years
#Flutter Tip: When your device's keyboard is open, FloatingActionButtons are better doors🚪than windows🪟 Use this simple trick to hide you FABs whenever the keyboard is open so that it doesn't block the view of your TextFields. #FlutterDev #Mobile
Tweet media one
5
52
222
@code_ontherocks
Joe Muller
1 year
Hi everyone! Since the #HustleGPT movement is taking off 🚀 I decided to create a public repo to track everyone's progress. Let me know if you're participating and I'll add you! I've added a few to get started: @jacksonfall @xnuonux @FollowRobJ
25
33
226
@code_ontherocks
Joe Muller
1 year
Daily #Flutter Tip 🚀 You can use anonymous functions (){} to programmatically determine which widget to show. Here, I use a switch statement inside an anonymous function to react to changes in the loading state
Tweet media one
15
34
230
@code_ontherocks
Joe Muller
3 years
I've been using #Flutter for over 2 years and I just now discovered the Stepper widget. It's perfect for setting up sequential onboarding flows or features that require certain questions to be answered before others. #FlutterDev #FlutterCommunity
Tweet media one
14
41
199
@code_ontherocks
Joe Muller
1 year
Daily #Flutter Tip 📏 You can use the FractionallySizedBox widget to create containers that take up a fraction of the total available space. Just set a widthFactor and heightFactor and you're good to go! I use this a lot with showModalBottomSheet to keep the dialog short.
Tweet media one
Tweet media two
4
23
192
@code_ontherocks
Joe Muller
3 years
#Flutter Efficiency Tip: Use the ColoredBox widget if your only goal is to change a container's background color. #dartLang #FlutterCommunity #android #ios
Tweet media one
4
21
176
@code_ontherocks
Joe Muller
11 months
Animated List transition demo in #flutter
@FloWritesCode
Flo writes Code
11 months
SwiftUI got another super nice API in iOS 17: Scroll Transitions!
13
33
526
3
20
176
@code_ontherocks
Joe Muller
3 years
#Flutter Efficiency Tip 🍃 Just had my mind blown for a second time today. Each of the new Material buttons comes with an convenient .icon(...) constructor for creating buttons with a leading icon and label. #FlutterDev #FlutterPuzzleHack
Tweet media one
3
30
167
@code_ontherocks
Joe Muller
1 year
Here's the constants.dart file I include in every Flutter project I work on. It takes a little inspo from @tailwindcss and it makes life a whole lot easier 👏👏
Tweet media one
13
12
164
@code_ontherocks
Joe Muller
3 years
#Flutter Tip: You can add vibrations of various intensities using the HapticFeedback class. I've seen a lot of apps recently adding haptics to all of their button interactions (*cough* @coinbase ) #FlutterDev #FlutterCommunity #100DaysOfFlutter
Tweet media one
6
30
153
@code_ontherocks
Joe Muller
3 years
#Flutter Performance Tip: Create a reusables.dart file to hold components that are constant everywhere. - Padding and margin values - Border values - Spacers ...
Tweet media one
11
26
152
@code_ontherocks
Joe Muller
2 years
I started learning @FlutterDev at the beginning of 2020 and have been 100% focused on #Flutter since then. It was honestly worth the time investment. But in the name of continuous improvement, I'm branching out! Chapter 2: DevOps Language: @golang
9
5
144
@code_ontherocks
Joe Muller
2 years
Deploying a #Flutter app to Google Play or the Apple App Store can be stressful, even if its been rigorously tested. Why? Because it's basically impossible to perform a hot fix 🔥🫠 A pessimistic thread on a problem I'd like a solution to 🧵
7
24
136
@code_ontherocks
Joe Muller
3 years
Where's my blue heart 💙 crew? If I'm not following you, like this Tweet and I will 👌 #flutter #flutterdev #fluttercommunity
8
12
131
@code_ontherocks
Joe Muller
11 months
#Flutter Gotcha 💥 How many users have you unknowingly trapped? If you weren't already aware, number keyboards on iOS do NOT include a "Done" or "Close" button. You can (kind of) work around this by setting the keyboardType to TextInputType.numbersWithOptions 👇 #FlutterDev
Tweet media one
Tweet media two
Tweet media three
6
21
125
@code_ontherocks
Joe Muller
2 years
This thing is incredible. I asked for a script to auto-increment my version number in pubspec and it gave me this. #flutter #ChatGPT
Tweet media one
8
17
129
@code_ontherocks
Joe Muller
1 year
Daily #Flutter Tip ♺ You can use the RefreshIndicator widget to add a swipe-to-refresh feature to scrollable lists. Just wrap the List in a RefreshIndicator and set the onRefresh callback. Bonus: You can programmatically show the refresher using a GlobalKey 🤯
Tweet media one
Tweet media two
1
25
122
@code_ontherocks
Joe Muller
3 years
#Flutter Tip: You can use the breakpoint package by @rodydavis to create layouts that vary based on the current screen size. A mobile design will almost never look great on a larger desktop display. #FlutterDev #FlutterCommunity #dash #firebase
Tweet media one
2
25
118
@code_ontherocks
Joe Muller
1 year
Hey #Flutter Devs, I've got some big news 🚀 As of this morning, the flutter_fast_cli is now #opensource and available on pub. dev! This goal of this project is twofold: 1. Help you launch fast 2. Make experimenting with Flutter-friendly tech easier I have a lot more
Tweet media one
9
18
124
@code_ontherocks
Joe Muller
3 years
It would be cool if we could opt in to notifications from our favorite packages on . I guess you could always subscribe to the individual repos but it'd be better to manage my #Flutter notifications all in one place. @FlutterDev @FlutterComm
Tweet media one
9
13
117
@code_ontherocks
Joe Muller
2 years
#Flutter Tip for any @androidstudio users out there - If you right-click on the lib folder and select "Optimize Imports", the IDE will remove all of your unused imports. #Tech #MobileApps #Kotlin #Swift #android #ios #efficiency
Tweet media one
6
25
114
@code_ontherocks
Joe Muller
1 year
The squadron package on pub. dev is an absolute gold mine of multithreading knowledge in Dart and Flutter 💙 🤯 I was struggling to set up a web worker for handling a giant, on-device calculation and this got me over the finish line.
Tweet media one
2
17
116
@code_ontherocks
Joe Muller
1 year
#Flutter Tip 🛠️ You can listen to multiple ValueNotifiers at the same time using Listenable.merge. 1. Create your ValueNotifiers as usual 2. Add a ListenableBuilder to your widget tree 3. Merge the ValueNotifiers In this example, numOne and numTwo will both trigger a rebuild
Tweet media one
3
13
118
@code_ontherocks
Joe Muller
2 years
Hey #Flutter devs, here's a new way to create a color scheme/theme: #ChatGPT
Tweet media one
7
22
113
@code_ontherocks
Joe Muller
3 years
#Flutter Tip: Use the AnimatedSwitcher widget to cross-fade between two different child widgets. The animation defaults to a FadeTransition which simply fades the old widget out while fading the new one in. #FlutterCommunity #FlutterDev
Tweet media one
5
28
109
@code_ontherocks
Joe Muller
3 years
#Flutter Reminder: The TextInputType.number keyboard type can result in different behaviors on different devices. Make sure to double check your input fields on #Android and #iOS devices. #FlutterCommunity #FlutterEngage
Tweet media one
2
21
105
@code_ontherocks
Joe Muller
1 year
Daily #Flutter Tip # 53💙 Use the Future.wait method to wait for multiple futures to complete 🕦🕝🕑 The response from Future.wait is a list of the results in the order you specified them. This is useful for cases when your UI depends on several backend calls. #FlutterDev
Tweet media one
4
9
113
@code_ontherocks
Joe Muller
1 year
Big #HustleGPT Milestone!! 💯💯💯💯💯💯💯💯💯💯 💯💯💯💯💯💯💯💯💯💯 💯💯💯💯💯💯💯💯💯💯 💯💯💯💯💯💯💯💯💯💯 💯💯💯💯💯💯💯💯💯💯 💯💯💯💯💯💯💯💯💯💯 💯💯💯💯💯💯💯💯💯💯 💯💯💯💯💯💯💯💯💯💯 💯💯💯💯💯💯💯💯💯💯 💯💯💯💯💯💯💯💯💯💯 We've officially reached 100 startups!
6
4
103
@code_ontherocks
Joe Muller
11 months
If you're an Android, iOS, or #Flutter dev, check out this awesome icon generator by @romannurik
4
23
109
@code_ontherocks
Joe Muller
3 years
#Flutter Tip: You can use the Tooltip widget to show instructional messages to your users. Tooltips shown this way will dynamically position themselves so they stay on screen. #FlutterDev #Accessibility
Tweet media one
5
19
100
@code_ontherocks
Joe Muller
1 year
Daily #Flutter Tip # 55 You can create a ColorScheme from an image using the .fromImageProvider constructor 🖌️ This constructor "extracts the dominant color" from your image and creates a ColorScheme with "harmnonious colors that meet contrast requirements for accessibility"
Tweet media one
Tweet media two
2
13
105
@code_ontherocks
Joe Muller
11 months
Daily #Flutter Tip 💙 You can control how imported libraries are seen by your code using the "as", "show", and "hide" keywords. "as" gives the library an alias. "show" imports specific parts of a library. "hide" prevents parts of the library from being imported. #FlutterDev
Tweet media one
4
13
100
@code_ontherocks
Joe Muller
1 year
ValueNotifiers are extremely useful for managing state in your #Flutter application but they might not work how you'd expect them to. From the docs 📘 "Because this class only notifies listeners when the value's identity changes, listeners will not be notified when mutable
Tweet media one
Tweet media two
Tweet media three
4
7
102
@code_ontherocks
Joe Muller
3 years
#Flutter Tip: If you want more control over shadows in your UI, you can use a DecoratedBox with a BoxDecoration. Inside the BoxDecoration, you can provide a list of BoxShadows that will appear behind your widget. #FlutterDev #FlutterCommunity
Tweet media one
5
20
98
@code_ontherocks
Joe Muller
11 months
Daily #Flutter Tip You can implement fine control over the appearance of some material widgets using MaterialStateProperty. For buttons, you can update their color when: 1️⃣ Pressed 2️⃣ Hovered 3️⃣ Disabled 4️⃣ Focused There are multiple ways to set this up as shown here 🪄
Tweet media one
Tweet media two
Tweet media three
4
11
95
@code_ontherocks
Joe Muller
3 years
#Flutter Package Highlight: The shimmer package lets you add a cool shimmer effect to any widget. This can be used to create a sleek loading "skeleton". Simply wrap your widget with Shimmer and specify the colors you want. #flutterDev #dartLang
Tweet media one
2
19
94
@code_ontherocks
Joe Muller
3 years
#Flutter Package Highlight: The timeago package can be used to create fuzzy timestamps. 30 seconds ago -> "A moment ago" 57 mins ago -> "About an hour ago" 4.8 days ago -> "5 days ago" It's great for timestamping social posts or chat messages!
5
22
89
@code_ontherocks
Joe Muller
3 years
#Flutter Tip: You can change the color, shape, and border of your buttons using the .styleFrom() constructor. Works for: - ElevatedButton - OutlinedButton - TextButton #FlutterCommunity #FlutterDev @FlutterDev
Tweet media one
2
22
90
@code_ontherocks
Joe Muller
3 years
Used the image and file_picker packages to let users pick which image they want to play with. It was a little tricky figuring out how to crop out sections of the original image since I was using BoxFit.cover...but it's working! #FlutterPuzzleHack #FlutterDev #Flutter
8
12
84
@code_ontherocks
Joe Muller
2 years
Knocked this out in 15mins with #ChatGPT and #flutter I think we will start playing "prompt golf" instead of "code golf". This took me 8 prompts to get something close. 🚀🚀🚀
7
9
85
@code_ontherocks
Joe Muller
2 years
Feature-first > Layer-first #Flutter 🧠It's easier on the brain. 🧮It's more logical for teams. 📦It allows app modules to be extracted into packages. “Flutter Project Structure: Feature-first or Layer-first?” via @biz84
5
16
87
@code_ontherocks
Joe Muller
1 year
I got a little bored during my lunch today and wanted to play around with an hourglass animation in #Flutter Implicit animations can really make an effect come to life ⏳
3
9
89
@code_ontherocks
Joe Muller
3 years
#Flutter Tip: Want to change the colors of your date picker? Use the builder field to wrap the picker widget with a Theme. Then use the colorScheme in that theme to set the all of the colors. #FlutterDev @FlutterDev
Tweet media one
5
13
86
@code_ontherocks
Joe Muller
3 years
#Flutter Tip: Use the ToggleButtons widget to offer your app users an intuitive UI for making choices. The main components ⚙️ - children = List of widgets representing options - isSelected = Array of boolean values representing selections
Tweet media one
4
12
83
@code_ontherocks
Joe Muller
1 year
New loading screen? This is just a GridView.builder with children that are animated using flutter_animate. Just set a delay for each child based on the index and voilà! #flutter #mobiledev #ui
5
7
90
@code_ontherocks
Joe Muller
1 year
I've updated the SwiftUI-in-Flutter demo with most of the basic accessibility features (and yes, you can exit the date picker now!) @timsneath #flutter #swiftui
7
5
88
@code_ontherocks
Joe Muller
11 months
Favorite #Flutter extension of the week goes to this little guy 🏆
Tweet media one
3
7
86
@code_ontherocks
Joe Muller
11 months
Daily #Flutter Tips 1️⃣2️⃣3️⃣ You can drastically improve the accessibility of your application using a few simple widgets. 1. Wrap unlabeled parts of your UI with the Semantics widget to give users more information about its purpose. 2. Use MergedSemantics to group widgets in
Tweet media one
Tweet media two
Tweet media three
1
11
87
@code_ontherocks
Joe Muller
1 year
I discovered a hidden gem in the Flutter ecosystem this week 💎 Monarch is a developer tool for building Flutter widgets in isolation and its incredibly easy to start using. 1. Write your stories (just widgets) 2. Run Monarch 3. Tweak and debug Add your onboarding pages, error
Tweet media one
2
13
84
@code_ontherocks
Joe Muller
1 year
@dabit3 It definitely sounds like a location or experience issue. I'm doubling down and building a full stack Dart agency
4
0
81
@code_ontherocks
Joe Muller
3 years
#Flutter Tip: You can enable or disable your Heros using the HeroMode widget. The HeroMode widget controls all Hero widgets in the given subtree. #FlutterDev #FlutterCommunity @FlutterDev @FlutterComm
Tweet media one
4
15
81
@code_ontherocks
Joe Muller
3 years
I built a SliverAppBar that fades across a gradient as you scroll using: Stacked flutter_hooks TabController.animation Color.lerp @FilledStacks #Flutter #Android #flutterdev #mobile #ReactNative #MaterialYou
6
15
81
@code_ontherocks
Joe Muller
2 years
#Flutter Tip You can select all of the text within a TextField by setting the selection property. Here's the extension I use to do this:
Tweet media one
4
9
77
@code_ontherocks
Joe Muller
1 year
#Flutter Tip of the Day 🔧 You can rebuild the contents in a Modal Bottom Sheet or a Dialog using the StatefulBuilder widget. The StatefulBuilder provides its child with a setState method it can call to trigger the rebuild. #FlutterDev #FlutterCommunity #DartLang #MobileDev
Tweet media one
2
13
81
@code_ontherocks
Joe Muller
1 year
Tweet media one
5
7
80
@code_ontherocks
Joe Muller
1 year
I gave the SwiftUI challenge by @timsneath a go in Flutter and ended up learning that there is a ListTile.divideTiles constructor 😮🤯 TBH I am tempted to try SwiftUI for the comparison
Tweet media one
@code_ontherocks
Joe Muller
1 year
Tweet media one
5
7
80
3
3
77
@code_ontherocks
Joe Muller
11 months
Daily #Flutter Tip 🪄 You can store a JSON object using shared_preferences. 1. Convert your JSON object to a string 2. Save the serialized string 3. Fetch the string and convert it back to a JSON object Use dart:convert's jsonEncode and jsonDecode functions for (1) and (3).
Tweet media one
2
7
74
@code_ontherocks
Joe Muller
3 years
#Flutter Widget Tip: If you've ever been frustrated with fitting a DropdownButton into your UI, check this out. There's an "isExpanded" field in DropdownButton that will force the button to fill the horizontal space. #flutterDev #FlutterCommunity
Tweet media one
2
21
74
@code_ontherocks
Joe Muller
3 years
#Flutter Tip: The DropdownButton widget defaults to underling its current value. In a lot of #design layouts, that little underline feels out of place. To remove it, wrap your DropdownButton with a DropdownButtonHideUnderline widget.
Tweet media one
7
13
71
@code_ontherocks
Joe Muller
2 years
If you're a #Flutter dev wondering what the difference between onSubmitted and onEditingComplete is in a TextField.... Check out this answer on SO. Long story short they both get fired but onSumitted gives you the text to work with.
3
9
72
@code_ontherocks
Joe Muller
11 months
Daily #Flutter Tip 🌠 The Transform widget is your go-to for applying graphical transformations to its child. ↔️Translate: Slide your widget around. ⬆️Scale: Resize your widget. ↩️Rotate: Give your widget a spin.
Tweet media one
0
14
74
@code_ontherocks
Joe Muller
1 year
#Flutter Tip The DateTime class has a static integer property for each day of the week, starting at 1 (Monday) and ending at 7 (Sunday). Each DateTime object also has a weekday property. This is useful for checking if a given day is on the weekend 📆
Tweet media one
0
8
72
@code_ontherocks
Joe Muller
2 years
It's a work in progress but I just published a new #Flutter package 🚀 📦pwa_install📦 In short, it lets you prompt users to install your web app as a progressive web app (PWA).
6
12
70
@code_ontherocks
Joe Muller
1 year
Daily #Flutter Tip # 50 💙👀 One of the oldest UI tricks in the book is to stagger your animations so components pop in one after the other. You can accomplish this with the flutter_animate package and the "delay" property on the Animate widget:
3
13
73
@code_ontherocks
Joe Muller
11 months
Daily #Flutter Tip 🔵 The FloatingActionButton comes in 3 sizes: 1. Small (or mini) 2. Regular degular 3. Large (do people use this?) 🪄 If you're using multiple FABs on a page, don't forget to add a heroTag. #FlutterDev
Tweet media one
Tweet media two
1
8
71
@code_ontherocks
Joe Muller
3 years
#Flutter Tip: You can easily format your TimeOfDay objects using the format(context) method. As mentioned in the docs, this method "is a chortcut for MaterialLocalizations.formatTimeOfDay" #FlutterDev #FlutterCommunity
Tweet media one
2
12
68
@code_ontherocks
Joe Muller
2 years
Research time 📖 #flutterDev #flutter
Tweet media one
2
10
66
@code_ontherocks
Joe Muller
2 years
#Flutter 3.0.2 is here, people 🔊
Tweet media one
0
13
68
@code_ontherocks
Joe Muller
3 years
#Flutter tech tip of the day: Colors.grey[850] is the background Material color when you're running in dark mode. #efficiency #dartdev #android #ios
1
10
67
@code_ontherocks
Joe Muller
3 years
All small mobile app development teams should be incredibly excited about the new FlutterFire UI package announced with #Flutter 2.8. Combine this powerful package with a code generator like Mason by @felangelov and OOF! You can be building an app a day.
4
7
62
@code_ontherocks
Joe Muller
2 years
There are 3 types of programming languages: 📦Object-oriented 🪜Procedural 🧮Functional If you're curious about #DartLang , I found this snippet in the Effective Dart doc👇
Tweet media one
2
11
63
@code_ontherocks
Joe Muller
2 years
Fun fact: 🦫There are only 25 keywords in #golang . 🐦Compare that to 61 keywords in #dart . Do what you will with that information...
4
8
63
@code_ontherocks
Joe Muller
1 year
Question for my fellow #Flutter Devs: Bad idea or what? I like using the TextStyles from the app Theme and I dislike having to type "!.copyWith(color: myColor)" a 1000 times. With these 2 extensions, I get TextStyles in any color FAST 🏎️🔥 Ex. "context.titleLarge.tertiary"
Tweet media one
Tweet media two
15
3
64
@code_ontherocks
Joe Muller
3 years
#FlutterPuzzleHack Finished implementing some pretty accurate "contact detection" in my slider puzzle ➡️⬅️ This had been a fun problem to work on @FlutterDev @devpost 🔥🔥 #flutter #hackathon
1
8
59
@code_ontherocks
Joe Muller
1 year
#Flutter Tip of the Day 🎨 (x2) You can determine if a background color is considered "light" or "dark" by: 1. Calling the computeLuminance() method on a Color object 2. Using ThemeData's static estimateBrightnessForColor() method
Tweet media one
Tweet media two
Tweet media three
1
7
61
@code_ontherocks
Joe Muller
3 years
#FlutterPuzzleHack Some more progress. Each piece knows when it's in the correct spot. Honestly this is kinda fun since you have to remember where each piece belongs. @FlutterDev @devpost #hackathon #flutter
3
5
64
@code_ontherocks
Joe Muller
11 months
Daily #Dart Tip 🎯 You can find the max value in a List several different ways: 1. Use the built-in reduce() method on List 2. Use the maxBy() function from the Collection package 3. Use reduce() with max from the math library #Flutter #FlutterDev
Tweet media one
1
6
62
@code_ontherocks
Joe Muller
1 year
#Flutter Gotcha 🍎 CupertinoApp does not introduce a Theme widget to the widget tree so Theme.of(context).brightness won't tell you much. Instead, it introduces a CupertinoTheme which you can use to check if the app is running in light or dark mode. #Swiftui #FlutterDev
Tweet media one
Tweet media two
5
4
62
@code_ontherocks
Joe Muller
1 year
Just updated ye olde Twitter banner so I figured I'd reintroduce myself My name is Joe and I've been working with Flutter for almost 4 years. I created a little dev agency, Code on the Rocks, a few months ago to formalize some of the work I do in the space. Things I post about:
Tweet media one
2
2
59
@code_ontherocks
Joe Muller
3 years
#Flutter Reminder: The AlertDialog widget is intended to "inform the user about a situation that requires acknowledgement". Typically this widget appears in the form of a popup and presents the users with a list of actions (in my case, TextButtons)
Tweet media one
1
14
58
@code_ontherocks
Joe Muller
1 year
The many faces of SizedBox 🎭 I recently started using the .shrink() constructor everywhere as per the #Flutter docs: "The simplest way to hide a child is just to not include it, or, if a child must be given (e.g. because the parent is a StatelessWidget) then to use
Tweet media one
0
4
58
@code_ontherocks
Joe Muller
1 year
Daily #Flutter Tip ➡️ You can listen to the onDrawerChanged callback of your Scaffold to update your UI when the drawer is opened or closed. There is an equivalent callback for the end drawer (onEndDrawerChanged) #FlutterDev
2
6
58
@code_ontherocks
Joe Muller
1 year
Daily #Flutter Tip ↕️ The OrientationBuilder widget provides an Orientation value to its children based on the dimensions of the available space. ‼️This is NOT the device orientation ‼️ maxWidth > maxHeight = landscape maxWidth <= maxHeight = portrait
Tweet media one
Tweet media two
0
11
59
@code_ontherocks
Joe Muller
3 years
#Flutter and #Firebase Tip: I somehow just discovered this today but... You can use the flutterfire command line tool to easily install Firebase across all of your supported platforms. 🍎🤖💻📱 #FlutterCommunity #FlutterDev @FlutterFireDev
1
18
52
@code_ontherocks
Joe Muller
1 year
#Flutter + #Firebase Tip 💙🔥 You can add toJson and fromJson methods to the @ JsonKey annotations to convert DateTimes to Timestamps and vice versa. The to/fromJson methods need to be top-level functions that return exactly the type your looking for
Tweet media one
1
4
53
@code_ontherocks
Joe Muller
3 years
#Flutter Tip: You can combine EdgeInset values using the add() method. This is especially useful when you have constant EdgeInset values that are used throughout your app. #FlutterDev #FlutterCommunity #dartLang
Tweet media one
3
15
55
@code_ontherocks
Joe Muller
1 year
flutter_fast_cli v1.1.0 is up! ✅ Appwrite Support ✅ Shorebird Fastlanes ✅ `fast build` command The goal is to build fully-featured Flutter apps in less than 24 hours. What else should we add?
Tweet media one
9
5
56
@code_ontherocks
Joe Muller
1 year
Daily #Flutter /Dart Tip ☀️ You can update a single key in a Map using the update() method. This fails if the key doesn't exist ("Key not in map") To prevent this, provide an ifAbsent function inside of update(). If a key doesn't exist, this lets you can add it #flutterDev
Tweet media one
2
3
53
@code_ontherocks
Joe Muller
1 year
TIL in #Flutter 3.10 there are new IconButton constructors. These only have an effect when your theme's useMaterial3 property is set to true. Thanks @RydMike for calling this out in the Themes Playground!
Tweet media one
Tweet media two
1
4
53
@code_ontherocks
Joe Muller
2 years
Friendly reminder for #Flutter devs 🪃 Your domain layer should be written in pure dart (see 20:24 onward) This makes testing and maintaining your code a whole lot easier than if your UI and domain code were tangled.
3
7
52
@code_ontherocks
Joe Muller
11 months
You no longer need an extra dependency when adding Apple Sign In to your #Flutter apps. Firebase Auth has all you need as of Aug 23, 2022 🔥
Tweet media one
0
4
49
@code_ontherocks
Joe Muller
2 years
You know what? Why don't you just write the code for me? @pycharm Seriously though, this query auto-complete is sick. #postgres #sql #database #python
Tweet media one
3
4
44