Slide puzzle - A slide puzzle built for Flutter Challenge

Overview

Slide Puzzle

Photo Booth Header

coverage style: very good analysis License: MIT

A slide puzzle built for Flutter Challenge.

Built by Very Good Ventures in partnership with Google.

Created using Very Good CLI.


Getting Started πŸš€

To run the project either use the launch configuration in VSCode/Android Studio or use the following command:

$ flutter run -d chrome

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",
    "counterAppBarTitle": "Counter",
    "@counterAppBarTitle": {
        "description": "Text shown in the AppBar of the Counter Page"
    }
}
  1. Then add a new key/value and description
{
    "@@locale": "en",
    "counterAppBarTitle": "Counter",
    "@counterAppBarTitle": {
        "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:very_good_slide_puzzle/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",
    "counterAppBarTitle": "Counter",
    "@counterAppBarTitle": {
        "description": "Text shown in the AppBar of the Counter Page"
    }
}

app_es.arb

{
    "@@locale": "es",
    "counterAppBarTitle": "Contador",
    "@counterAppBarTitle": {
        "description": "Texto mostrado en la AppBar de la pΓ‘gina del contador"
    }
}
Comments
  • `flutter pub upgrade --major-versions`

    `flutter pub upgrade --major-versions`

    Description

    Updating dependencies

    Type of Change

    • [ ] ✨ New feature (non-breaking change which adds functionality)
    • [ ] πŸ› οΈ Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 Code refactor
    • [ ] βœ… Build configuration change
    • [ ] πŸ“ Documentation
    • [x] πŸ—‘οΈ Chore
    opened by domesticmouse 4
  • Platform dependency bump

    Platform dependency bump

    flutter build web is currently failing on the main branch after snagging on an error in the platform dependency.

    platform is a transitive dependency by way of google_fonts -> path_provider -> platform, but I'm not aware of a way to increase the version level without specifying it explicitly.

    bug 
    opened by craiglabenz 3
  • Dashatar version does not work

    Dashatar version does not work

    Description

    When clicking on the "Dashatar" button (next to the "Simple"), the whole app turns green and nothing else happens.

    Steps To Reproduce

    1. Go to https://very-good-puzzle.web.app/#/
    2. Click on "Dashatar"

    Screenshots

    Screen Shot 2022-01-07 at 03 14 33 bug 
    opened by creativecreatorormaybenot 2
  • Remove Flutter version pin

    Remove Flutter version pin

    Description

    Remove Flutter version pin to allow the sample to be run on current Flutter versions.

    Type of Change

    • [ ] ✨ New feature (non-breaking change which adds functionality)
    • [ ] πŸ› οΈ Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 Code refactor
    • [x] βœ… Build configuration change
    • [ ] πŸ“ Documentation
    • [ ] πŸ—‘οΈ Chore
    opened by domesticmouse 1
  • fix: Flutter/Flutter.h not found error for iOS

    fix: Flutter/Flutter.h not found error for iOS

    Description Try to run in iOS simulator and getting t

    Steps To Reproduce

    1. Select iOS simulator
    2. Click on Run
    3. The following error is generated:

    In file included from /Volumes/Extreme SSD/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.13/ios/Classes/FLTURLLauncherPlugin.m:7: /Volumes/Extreme SSD/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_ios-6.0.13/ios/Classes/FLTURLLauncherPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found #import <Flutter/Flutter.h> ^~~~~~~~~~~~~~~~~~~

    Expected Behavior I would expect a clean build and the iOS app started.

    Screenshots none

    Additional Context none

    bug 
    opened by briviere 1
  • Feat issolvable

    Feat issolvable

    Description

    Type of Change

    • [x] ✨ New feature (non-breaking change which adds functionality)
    • [ ] πŸ› οΈ Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 Code refactor
    • [ ] βœ… Build configuration change
    • [ ] πŸ“ Documentation
    • [ ] πŸ—‘οΈ Chore
    opened by prabowomurti 0
  • Npf 32 newapilib

    Npf 32 newapilib

    Description

    Type of Change

    • [x] ✨ New feature (non-breaking change which adds functionality)
    • [ ] πŸ› οΈ Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 Code refactor
    • [ ] βœ… Build configuration change
    • [ ] πŸ“ Documentation
    • [ ] πŸ—‘οΈ Chore
    opened by angwonson 0
  • chore(deps): upgrade dependencies

    chore(deps): upgrade dependencies

    Description

    • chore(deps): upgrade dependencies (resolves #11) via flutter packages upgrade

    Type of Change

    • [ ] ✨ New feature (non-breaking change which adds functionality)
    • [ ] πŸ› οΈ Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 Code refactor
    • [ ] βœ… Build configuration change
    • [ ] πŸ“ Documentation
    • [X] πŸ—‘οΈ Chore
    opened by felangel 0
  • fix MainAcitivty not found exception

    fix MainAcitivty not found exception

    Description

    When running the app on an Android device, the app just crashed with this:

    java.lang.RuntimeException: Unable to instantiate activity  
    ComponentInfo{com.example.verygoodcore/com.example.verygoodcore.MainActivity}:   
    java.lang.ClassNotFoundException: Didn't find class "com.example.verygoodcore.MainActivity"
    

    So MainActivity.kt was implemented at android/app/src/main/kotlin/com/example/verygoodcore/ and now the app works fine on both the emulator and physical device (at least to what I could test)

    Type of Change

    • [ ] ✨ New feature (non-breaking change which adds functionality)
    • [x] πŸ› οΈ Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 Code refactor
    • [x] βœ… Build configuration change
    • [ ] πŸ“ Documentation
    • [ ] πŸ—‘οΈ Chore
    opened by SofieTorch 0
  • Get stuck when using with Iphone

    Get stuck when using with Iphone

    Try to use the dashatar puzzle as fast as you can, you will notice it will suddenly gets stuck for some seconds.

    this issue occurs in both chrome and safari

    bug 
    opened by edwin-alvarez 0
  • `slide_puzzle` is broken under Flutter 2.10

    `slide_puzzle` is broken under Flutter 2.10

    Description slide_puzzle doesn't compile.

    Steps To Reproduce

    $ flutter run -d chrome
    Launching lib/main.dart on Chrome in debug mode...
    ../../../flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.7/lib/url_launcher_web.dart:50:61: Error: No named parameter with the name 'isVisible'.
            .registerViewFactory(linkViewType, linkViewFactory, isVisible: false);
    
    bug 
    opened by domesticmouse 2
  • refactor: Using precacheImage in initState

    refactor: Using precacheImage in initState

    Using precacheImage in initState

    Hi!

    I read a couple of posts such as https://stackoverflow.com/questions/51343735/flutter-image-preload which say that initState might not be the right place to call precacheImage from, since precacheImage requires the context which is not (or might not be) available from initState.

    I see that the puzzle code is using it here : https://github.com/VGVentures/slide_puzzle/blob/release/lib/app/view/app.dart. I also see that there is no issues running this code.

    Is precacheImage in initState appropriate here?

    opened by cekrozl1 4
  • Add SafeArea to Puzzle Page

    Add SafeArea to Puzzle Page

    Description

    Wrapped the Puzzle page with a SafeArea widget to offset OS components like status bar and home indicator on iOS

    Type of Change

    • [x] ✨ New feature (non-breaking change which adds functionality)
    • [ ] πŸ› οΈ Bug fix (non-breaking change which fixes an issue)
    • [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
    • [ ] 🧹 Code refactor
    • [ ] βœ… Build configuration change
    • [ ] πŸ“ Documentation
    • [ ] πŸ—‘οΈ Chore
    opened by Roaa94 0
Owner
Very Good Ventures
A very good Flutter development consultancy (also @VeryGoodOpenSource)
Very Good Ventures
A simple slide-to-unlock widget for Flutter inspired by the Android Slide To Act.

Flutter Slide To Act A simple slide-to-unlock widget for Flutter inspired by the Android Slide To Act. Getting started Add slide_to_act to your pubspe

Salvatore Giordano 79 Dec 25, 2022
A slide puzzle game created with flutter for the flutter hack

Jungle puzzle A slide puzzle game created with flutter for the flutter hack https://flutter.dev/events/puzzle-hack Numeric Image Dark Mode How to run?

Roger Torres 13 Oct 26, 2022
Challenge cannabis - Challenge for Slicing UI Cannabis from FLutter Fan Indonesia

challenge_cannabis Challenge buat Slicing UI Cannabis dari om Kipas Angin FLutte

wind city 3 May 11, 2022
181011450390-FLUTTER-CHALLENGE - Example GitHub Search app built in Flutter & RxDart

Example GitHub Search app built in Flutter & RxDart Simple app using the Flutter

null 1 Jan 3, 2022
Flutter Slides utilizes Flutter Desktop Embedding to provide a simple slide presentation app

Flutter Slides Flutter Slides utilizes Flutter Desktop Embedding to provide a simple slide presentation app. Presentations are data driven from files

Tim Sneath 12 Oct 31, 2022
Sardor Makhmudov 0 Feb 7, 2022
An Animated login page made with dart which is slide based

Flutter animated login page A new dart project designed for login page of a webs

Munem Sarker 1 Jan 27, 2022
This is Math-Puzzle game made in flutter and available on Playstore & AppStore

Math Matrix : Train Your Brain, Improve Math Skill Train Your Brain Β· Report Bug Β· Request Feature Math Matrix is a Math Game that tries improvise you

Jay Savsani 182 Dec 30, 2022
15puzzle - The Game of 15-puzzle written with Flutter

Game of Fifteen Puzzle game with Flutter? The Game of Fifteen (also called 15-puzzle, Gem Puzzle, Boss Puzzle, Mystic Square and many others) is a sli

Artem Chepurnoy 186 Nov 18, 2022
A Submission for the Flutter Puzzle Hack

Numbers_Puzzle This project is my submission the "Flutter Puzzle Hack 2022". The application keeps the same gameplay logic but offer a new kind of use

RGProgrammer 3 Jun 17, 2022
Planets - Flutter Puzzle Hack

Planets | Best Execution Winner ?? Can you put together the planets of our solar system? An interplanetary slide puzzle, powered by Flutter. My Flutte

Jyotirmoy Paul 70 Jan 4, 2023
πŸ†πŸ₯‡ Tiaco : Online Multiplayer is one of the best puzzle games in the market. πŸ₯‡πŸ†

Important!!! Logo was generated by dall e 2 ?? ?? Tiaco : Online Multiplayer is one of the best puzzle games in the market. ?? ?? [Pull Request's are

Naser 2 Sep 22, 2022
Challenge yourself every weekend with flutter. Join me to implement challenging UI & digital designs using Flutter.

Weekend With Flutter This is my new challenge. Every weekend, I want to implement challenging UI & digital designs using Flutter. you can join me with

Payam Zahedi 16 Feb 24, 2022
Google's Flutter Clock Challenge Novelty πŸš€ of Idea Award πŸ† winner (https://flutter.dev/clock)

Sunset Reflections Clock My submission to the Flutter Clock Challenge, winner of the Novelty of Idea award: a cold cathode display clock (aka nixie cl

VΓ­ctor Morilla 52 Dec 26, 2022
Felipe Dias Casseb 2 Feb 9, 2022
Flutter UI challenge (with Box2D physic)- Smart washing machine app

Flutter UI Challenge- SMART Washing Machine About project The application was written based on this great UI concept: https://dribbble.com/shots/11018

Tomasz Pawlikowski 754 Dec 27, 2022
flutter development bootcamp layout challenge #2.1

MiCard App Challenge Hey folks! This app is the continuation of the layout_challenge_app. I coded this app from scratch because unfortunate things hap

Damla Γ‡im 1 Jan 6, 2022
My participation on the Flutter Clock Challenge of 2020 with Francisco Frutuoso design

Cloom Clock ?? "Visual Beauty Winner" of the 2020 Clock Challenge, announcement post ?? You can read our blog post describing the process here How to

Filipe Barroso 77 Dec 26, 2022
creativecreatorormaybenot's entry to the Flutter Clock challenge.

clock creativecreatorormaybenot's playful entry to the Flutter clock challenge (is it weird to say it like that?). This is a clock display that uses e

null 280 Nov 12, 2022