💻
Gürkan Fikret Günak - Personal
  • 👨‍💻About me
    • 🌊Journey
  • 🎯Dart
    • 🔬What's Dart Algorithms?
    • 🔬What's Dart Structures?
    • 🧮#01 Algorithm Guidance: Implementing Calculation Algorithms
    • 🧮#02 Algorithm Guidance: Two Sum
  • 📄Guidances
    • Flutter MVVM Guidance
    • Dart Programming Guidance
    • E-Commerce Use Cases
    • E-Commerce Applications
    • Flutter App Color Palette Usage Guidance
    • Flutter Custom AppBar Usage Guidance
    • Flutter Network Image Cache Usage Guidance
    • Flutter Project Bitbucket SSH Guidance
    • Flutter Project GitHub SSH Guidance
    • Flutter SliverAppBar Usage Guidance
    • The Importance of BuildContext in Flutter Tests Guidance
    • Internship Basic Guidance v0.1.0
    • The Importance of Type Casting in Flutter
    • Effective and Detailed Pull Request Guide
    • Flutter Naming Conventions Guidance
    • Flutter Widget Guidance
    • Semantic Commit Guidance
    • Being Part of a Mobile Software Team and Working on a Shared Architecture
    • Understanding Deep Links for Any Development Platform
    • The Journey of a Developer: Stories of Becoming Junior, Middle, and Senior Developer
    • Becoming a Team Leader: Growing in Sync with Your Team
    • Why IP Changes Are Important for Mobile Applications in Flutter
    • Why Your Growing Mobile Team Needs CI/CD and How to Build a Winning Strategy
    • Dart in 2024: 20 Features You Need to Know With Code Examples and Scenarios
    • Remote Theme Management with API (JSON): Implementing a Helper in Flutter SDK
    • Understanding and Implementing Force Upgrade in Your Flutter Project
    • Life Lessons from the Bald Eagle: A Metaphor for Growth, Change, and Leadership
    • The Beauty of Imperfection: Why Today Doesn’t Need to Be Perfect
    • # The Reverse Curve of Productivity: When Social Cohesion in Software Teams Starts to Hurt **How str
    • 📱 Mobil Uygulamalarda GraphQL Tercihi: Bakım ve Maliyet Etkiler
    • 📉 Türkiye’de Yazılım Projelerinde Süreç Yönetimi ve Ekonomik Kayıp: Bir Bekâ Sorunu mu?
  • 📹VIDEOS
    • Introduction to Flutter Boilerplate! ( Turkish )
    • Flutter APIs effective using ( English )
    • Understand to SDK ( English )
  • Links
    • 💼 | Linkedin
    • 🆇 | x.com
    • 📧 | Mail me
Powered by GitBook
On this page
  • Generating SSH Keys
  • Adding SSH Key to Bitbucket
  • Cloning a Flutter Project from Bitbucket
  • Adding Bitbucket-hosted Packages to Flutter Project
  1. Guidances

Flutter Project Bitbucket SSH Guidance

PreviousFlutter Network Image Cache Usage GuidanceNextFlutter Project GitHub SSH Guidance

In this guide, we'll walk you through the process of setting up SSH for your Flutter project hosted on Bitbucket, including generating SSH keys, adding them to your Bitbucket account, and adding Bitbucket-hosted packages to your Flutter project.

Generating SSH Keys

  1. Open the terminal on your developer's computer.

  2. Run the following command to generate a new RSA 4096-bit SSH key pair:

    ssh-keygen -t rsa -b 4096 -C "[email protected]"

    Replace "" with your own email address.

  3. The terminal will prompt you to choose where to save the SSH key. By default, it's usually saved in /home/yourusername/.ssh/id_rsa. You can specify a different path if you prefer.

Adding SSH Key to Bitbucket

  1. Log in to your Bitbucket account.

  2. Click on your avatar in the top right corner, and select "Settings" from the dropdown menu.

  3. Navigate to "SSH Keys" in the left menu.

  4. Click on "Add SSH Key" or "New key".

  5. Copy the content of the id_rsa.pub file generated in the previous step (you can view the content using the cat ~/.ssh/id_rsa.pub command).

  6. Optionally, give your key a label, and click "Add".

Cloning a Flutter Project from Bitbucket

  1. In the terminal, use the following command to clone the project:

    git clone [email protected]:username/repo.git

    Replace "username" with your Bitbucket username and "repo" with the name of the repository you want to clone.

  2. After cloning is completed, the project will be downloaded to your local computer, and you can start working on it.

Adding Bitbucket-hosted Packages to Flutter Project

  1. Open the project and edit the pubspec.yaml file.

  2. Add the Bitbucket-hosted packages to the dependencies section. For example:

    dependencies:
      package_name:
        git:
          url: [email protected]:username/package_name.git

    Replace "package_name" with the name of the package and "username" with your Bitbucket username.

  3. Optionally, you can use the ref parameter to specify a version, branch, commit hash, or tag. For example:

    dependencies:
      package_name:
        git:
          url: [email protected]:username/package_name.git
          ref: main

    This example assumes you want to use the "main" branch. You can use other references as needed.

  4. After making changes to pubspec.yaml, run the following command in the terminal to update the packages:

    flutter pub get

    This command will download the newly added Bitbucket packages and resolve dependencies.

You've now set up SSH for your Flutter project hosted on Bitbucket and added Bitbucket-hosted packages to your project. Your developer can start working with the project and use the private packages from Bitbucket in their Flutter app.

📄
[email protected]