Skip to content

bitforge/flutter_template

Repository files navigation

flutter_template

A template project for new Bitforge Flutter apps.

Main-Goal 👍: Start new and extendable Flutter Apps quickly.

Non-Goal 👎: A jack of all trades or a new Flutter framework.

This project is intentionally kept light both in code size & pubspec dependencies.

I've you wanna share code across projects, consider creating a https://pub.dev library.

Features:

Getting Started

  1. Clone this repository
git clone https://github.com/bitforge/flutter_template.git appname
  1. Rename app & identifier
flutter pub global activate rename
rename setAppName -v <YourAppName>
rename setBundleId -v ch.bitforge.<appname>
  1. Rename dart package name
sed -i '' 's/flutter_template/your_new_name/g' pubspec.yaml
find lib -type f -print0 | xargs -0 sed -i '' 's/flutter_template/your_new_name/g'
  1. Add your icon an splash image to assets/images. Then run:
dart run flutter_launcher_icons
dart run flutter_native_splash:create
  1. Start a new history & initialize your GitHub repo:
rm -rf .git
git init
git commit -am "Initial commit"
git remote add origin [email protected]:<owner>/<repo_name>.git
git push -u origin main
  1. Start hacking!

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.