<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Flutter on Good Fun Lover</title><link>https://goodfunlover.com/categories/flutter/</link><description>Recent content in Flutter on Good Fun Lover</description><generator>Hugo</generator><language>zh-tw</language><lastBuildDate>Thu, 27 Jul 2023 21:12:22 +0000</lastBuildDate><atom:link href="https://goodfunlover.com/categories/flutter/index.xml" rel="self" type="application/rss+xml"/><item><title>How to get Flutter path after installing using Homebrew for use in Android Studio</title><link>https://goodfunlover.com/2023/07/06/how-to-get-flutter-sdk-path-after-installing-using-homebrew/</link><pubDate>Thu, 06 Jul 2023 07:59:09 +0000</pubDate><guid>https://goodfunlover.com/2023/07/06/how-to-get-flutter-sdk-path-after-installing-using-homebrew/</guid><description>&lt;p&gt;&lt;a href="https://brew.sh"&gt;Homebrew&lt;/a&gt; makes installation and updates of programs and application easy. The command to check info, list packages installed, upgrade and uninstall is made intuitive and simple with homebrew. Consequently, I have switched from &lt;a href="https://docs.flutter.dev/get-started/install"&gt;downloading flutter directly&lt;/a&gt; from flutter website to homebrew.&lt;/p&gt;
&lt;p&gt;When I fires up my android studio, I am asked for the path to flutter.&lt;/p&gt;
&lt;p&gt;&lt;img src="image.webp" alt=""&gt;&lt;/p&gt;
&lt;p&gt;This can be achieved by issuing the following command in your terminal.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;% flutter doctor -v
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;img src="image-1.webp" alt=""&gt;&lt;/p&gt;</description></item><item><title>Android Studio Brackets Coloring</title><link>https://goodfunlover.com/2023/06/26/android-studio-brackets-coloring/</link><pubDate>Mon, 26 Jun 2023 10:09:04 +0000</pubDate><guid>https://goodfunlover.com/2023/06/26/android-studio-brackets-coloring/</guid><description>&lt;p&gt;As a personal preference, it might be easier during parentheses matching that the IDE automatically color the open and close bracket using the same color. This is prevalent in coding language like Flutter which is heavy on the widget configuration.&lt;/p&gt;
&lt;p&gt;In order to do this, simply goes to Preferences-&amp;gt; Plugins-&amp;gt;Marketplace and search for &lt;a href="https://plugins.jetbrains.com/plugin/10080-rainbow-brackets"&gt;Rainbow Brackets&lt;/a&gt;. There is one Lite version which is 59.8K and a complete version which is 11.3M. Do choose the full version.&lt;/p&gt;</description></item><item><title>Flutter doctor error –[!] Xcode – develop for iOS and macOS (Xcode 14.3.1)Flutter doctor error –✗ CocoaPods not installed</title><link>https://goodfunlover.com/2023/06/12/flutter-doctor-error-xcode-develop-for-ios-and-macos-xcode-14-3-1flutter-doctor-error--cocoapods-not-installed/</link><pubDate>Mon, 12 Jun 2023 07:28:27 +0000</pubDate><guid>https://goodfunlover.com/2023/06/12/flutter-doctor-error-xcode-develop-for-ios-and-macos-xcode-14-3-1flutter-doctor-error--cocoapods-not-installed/</guid><description>&lt;p&gt;Was trying to setup Android Studio and flutter on my &lt;strong&gt;Intel Mac&lt;/strong&gt;. Did not face this issue when using the Apple silicon Mac.&lt;/p&gt;
&lt;p&gt;&lt;img src="image.webp" alt=""&gt;&lt;/p&gt;
&lt;p&gt;Actual Error Message&lt;/p&gt;
&lt;h2 id="steps-to-resolve"&gt;Steps to resolve:&lt;/h2&gt;
&lt;h2 id="step-1-install-active-support-gem"&gt;Step 1: Install active support gem&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo gem install activesupport -v 6.1.7.3
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I have to run the above command as prompted before installing cocoapods as it prompts that my Ruby is outdated.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;ERROR:  Error installing cocoapods:
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;The last version of activesupport (&amp;gt;= 5.0, &amp;lt; 8) to support your Ruby &amp;amp; RubyGems was 6.1.7.3. Try installing it with `gem install activesupport -v 6.1.7.3` and then running the current command again
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;activesupport requires Ruby version &amp;gt;= 2.7.0. The current ruby version is 2.6.10.210.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After successfully executed the command, I see that 2 gems was installed.&lt;/p&gt;</description></item></channel></rss>