Giter Site home page Giter Site logo

pass_the_pigs's Introduction

Pass The Pigs

coverage style: very good analysis License: MIT

Generated by the Very Good CLI πŸ€–

Pass the Pigs


Getting Started πŸš€

This project contains 3 flavors:

  • development
  • staging
  • production

To run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands:

# Development
$ flutter run --flavor development --target lib/main_development.dart

# Staging
$ flutter run --flavor staging --target lib/main_staging.dart

# Production
$ flutter run --flavor production --target lib/main_production.dart

*Pass The Pigs works on iOS, Android, Web, and Windows.


Running Tests πŸ§ͺ

To run all unit and widget tests use the following command:

flutter test --coverage --test-randomize-ordering-seed random

To view the generated coverage report you can use lcov.

# Generate Coverage Report
$ genhtml coverage/lcov.info -o coverage/

# Open Coverage Report
$ open coverage/index.html

Working with Translations 🌐

This project relies on flutter_localizations and follows the official internationalization guide for Flutter.

Adding Strings

  1. To add a new localizable string, open the app_en.arb file at lib/l10n/arb/app_en.arb.
{
    "@@locale": "en",
    "appBarTitle": "Counter",
    "@appBarTitle": {
        "description": "Text shown in the AppBar of the Counter Page"
    }
}
  1. Then add a new key/value and description
{
    "@@locale": "en",
    "appBarTitle": "Counter",
    "@appBarTitle": {
        "description": "Text shown in the AppBar of the Counter Page"
    },
    "helloWorld": "Hello World",
    "@helloWorld": {
        "description": "Hello World Text"
    }
}
  1. Use the new string
import 'package:pass_the_pigs/l10n/l10n.dart';

@override
Widget build(BuildContext context) {
  final l10n = context.l10n;
  return Text(l10n.helloWorld);
}

Adding Supported Locales

Update the CFBundleLocalizations array in the Info.plist at ios/Runner/Info.plist to include the new locale.

    ...

    <key>CFBundleLocalizations</key>
 <array>
  <string>en</string>
  <string>es</string>
 </array>

    ...

Adding Translations

  1. For each supported locale, add a new ARB file in lib/l10n/arb.
β”œβ”€β”€ l10n
β”‚   β”œβ”€β”€ arb
β”‚   β”‚   β”œβ”€β”€ app_en.arb
β”‚   β”‚   └── app_es.arb
  1. Add the translated strings to each .arb file:

app_en.arb

{
    "@@locale": "en",
    "appBarTitle": "Counter",
    "@appBarTitle": {
        "description": "Text shown in the AppBar of the Counter Page"
    }
}

app_es.arb

{
    "@@locale": "es",
    "appBarTitle": "Contador",
    "@appBarTitle": {
        "description": "Texto mostrado en la AppBar de la pΓ‘gina del contador"
    }
}

pass_the_pigs's People

Contributors

georgeherby avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar

pass_the_pigs's Issues

Handle end game

Add a dialog and also change the icon from back arrow to something similar to the end/close

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update actions/checkout action to v4
  • Update actions/setup-java action to v4
  • Update actions/upload-artifact action to v4
  • Update dependency dart to v3
  • Update dependency flutter_lints to v4
  • Update dependency flutter_platform_widgets to v7
  • Update dependency google_fonts to v6
  • Update dependency mocktail to v1
  • Update kotlin monorepo to v2 (major) (org.jetbrains.kotlin:kotlin-stdlib-jdk7, org.jetbrains.kotlin:kotlin-gradle-plugin)
  • πŸ” Create all rate-limited PRs at once πŸ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

cocoapods
ios/Podfile
fvm
.fvm/fvm_config.json
github-actions
.github/workflows/main.yaml
  • actions/checkout v2
  • subosito/flutter-action v2
  • VeryGoodOpenSource/very_good_coverage v1
.github/workflows/release.yaml
  • actions/checkout v2
  • actions/setup-java v2
  • subosito/flutter-action v2
  • timheuer/base64-to-file v1.2
  • VeryGoodOpenSource/very_good_coverage v1
  • einaregilsson/build-number v3
  • actions/upload-artifact v3.1.2
gradle
android/gradle.properties
android/settings.gradle
android/build.gradle
  • com.android.tools.build:gradle 7.1.2
  • org.jetbrains.kotlin:kotlin-gradle-plugin 1.6.10
  • org.jetbrains.kotlin:kotlin-stdlib-jdk7 1.6.10
android/app/build.gradle
gradle-wrapper
android/gradle/wrapper/gradle-wrapper.properties
  • gradle 7.4
pub
pubspec.yaml
  • basic_utils ^4.5.2
  • bloc ^8.0.3
  • confetti ^0.7.0
  • equatable ^2.0.3
  • flutter
  • flutter_bloc ^8.0.1
  • flutter_platform_widgets ^3.0.0
  • google_fonts ^4.0.3
  • intl ^0.17.0
  • bloc_test ^9.0.3
  • flutter_launcher_icons ^0.9.3
  • flutter_lints ^2.0.1
  • flutter_native_splash ^2.2.6
  • mocktail ^0.3.0
  • dart >=2.19.2-0 <3.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.