thelazyindian / Tasks

A clone of Google Tasks app made from scratch with flutter. WIP.
52 stars 22 forks source link

Fails to Create Database #1

Open rodydavis opened 5 years ago

rodydavis commented 5 years ago
Launching lib/main.dart on iPhone XR in debug mode...
Xcode build done.                                            5.6s
flutter: Tasks: Running initDb
DB Error: 1 "near "Tasks": syntax error"
DB Query: CREATE TABLE My Tasks(id INTEGER PRIMARY KEY, task TEXT, status TEXT, details TEXT, date TEXT)

Flutter Doctor:

[✓] Flutter (Channel beta, v0.10.2, on Mac OS X 10.13.6 17G3025, locale en-US)
    • Flutter version 0.10.2 at /Users/developer/flutter
    • Framework revision d8cbb80206 (3 weeks ago), 2018-10-26 01:30:21 -0400
    • Engine revision 6c2ade9fa2
    • Dart version 2.1.0-dev.8.0.flutter-bf26f760b1

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/developer/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[!] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    ✗ libimobiledevice and ideviceinstaller are not installed. To install, run:
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 30.0.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] VS Code (version 1.28.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.20.0

[✓] Connected device (1 available)
    • iPhone XR • 8740478D-307D-484F-BF6D-0C7D1967344D • ios • iOS 12.1 (simulator)

! Doctor found issues in 1 category.
rodydavis commented 5 years ago

Here is a pull request for the fix: https://github.com/thelazyindian/Tasks/pull/3