Smith & Tech Chat (Flutter) - v1.0.1

Smith & Tech Chat is the Smith & Tech Matrix chat app, built fresh on the Matrix Dart SDK + flutter_vodozemac (E2EE). FluffyChat was a reference only (AGPLv3 - it was not forked). The Element X fork is kept as a fallback only and was not built from.

  • Package: space.smithandtech.chat (new app)
  • Version: 1.0.1 (versionCode 2)
  • Platform order: Android -> Linux -> Web -> Windows -> iOS last. This repo contains the first Android debug APK build.
  • Homeserver (LOCKED, no server picker): https://chat.smithandtech.space
  • Auth: MAS https://mas.smithandtech.space - MAS OAuth2 (in-app browser)
    • QR code sign-in, in-app registration, password sign-in.

v1.0.1 - MAS sign-in fix (Nov 21, 2026)

Bug (on-device test, Nov 21, 5:22 AM): MAS sign-in failed with "MAS sign-in could not start: You must provide a Database sqfliteDatabase for use on native." Root cause: ChatService._newClient() called MatrixSdkDatabase.init('smith_tech_chat') without a database, and the Matrix Dart SDK (v17) requires a sqflite Database on native platforms. Fix: on native platforms the app now opens a sqflite database (smith_tech_chat.db in the sqflite databases path, via sqflite + path) and passes it as database: to MatrixSdkDatabase.init; web still uses IndexedDB (no sqflite). sqflite: ^2.4.2 and path: ^1.9.1 are now direct dependencies.

Sign-in screen simplification (all in this build, nothing else changed):

  • Username/password fields removed entirely - password login is disabled server-side (MAS mode).
  • One big primary button: "Sign in with Smith & Tech" (MAS OAuth2, in-app browser).
  • "Create an account" as a small link under the sign-in button (in-app MAS registration).
  • QR code sign-in tucked under a small "Other ways to sign in" link.
  • Homeserver stays LOCKED to https://chat.smithandtech.space (no server picker).

Verification (v1.0.1 debug APK):

Sign-in verification: NOT verified end-to-end on a device in this build. The sqflite blocker is fixed in code and the MAS authorize flow can now start; MAS was reachable at build time (https://mas.smithandtech.space/ returned 200, and the homeserver well-known at https://chat.smithandtech.space/.well-known/matrix/client confirms MAS as the issuer). Sign-in errors are surfaced in the UI instead of failing silently (the login screen shows the exact error, and MAS OAuth failures are shown in the in-app browser screen).

v1 scope (all in this build)

  • Sign-in, rooms, DMs, messages, E2EE (per-room, flutter_vodozemac), media (images), in-app notifications, settings + theme.
  • Voice/video calls: Matrix Call is PRIMARY (LiveKit backend on pve1, CT 131) with Jitsi as an option (in-app).
  • Mini games, playable online inside the app (moves are sent as Matrix messages): chess, checkers, spades.
  • Weather (Open-Meteo, no API key).
  • MoTubeTV section (in-app).
  • Collaboration: Etherpad + Excalidraw (in-app).
  • Live location is NOT in v1. When it arrives it will use Smith & Tech OSM tiles, never Google Maps.
  • Notifications are IN-APP only in v1. Real push via a Sygnal gateway comes later; no gateway exists yet, so none was built.

Theme

Glass style (frosted glass, Exchange GlassCard values: BackdropFilter blur sigmaX/Y 14, radius 20, surface alpha 0.55 dark / 0.60 light, white border alpha 0.20 dark / 0.45 light, shadow black 0.18, blur 18, offset (0,6))

  • theme setting (Glass/Material, 5 palettes: Royal+Powder #1E3A8A+#93C5FD, Gold+Slate #C9A227+#1E293B, Emerald+Mint #047857+#6EE7B7, Violet+Lavender #6D28D9+#C4B5FD, Monochrome #1F2937+#D1D5DB; Light/Dark for every palette; per-app; default Glass Royal+Powder dark).

Launcher icon: gold speech bubble with an orbit ring on Royal blue #1E3A8A, applied as an adaptive icon (gold bubble-orbit foreground centred, Royal blue background, no white tile) at all densities for ic_launcher, ic_launcher_round and ic_launcher_foreground. Source: the chat bubble-orbit artwork downloaded Nov 21, 2026 from the assigned link (SHA256 187025c182c18382c775f95887c52b729ac091357f2d63b9d8cbb836c565b8ba).

Licensing - IMPORTANT, verified at build time (Nov 21, 2026)

The Nov 20 decision was PROPRIETARY. The build-time licence check FAILED for that decision:

  • matrix 17.0.0 is licensed AGPL-3.0-or-later (SPDX in its pubspec.yaml; its LICENSE file is the GNU Affero General Public License v3).
  • flutter_vodozemac 0.9.1 is licensed AGPL-3.0-or-later (same verification).

AGPLv3 does NOT allow proprietary closed-source distribution of an app that links these packages: if this app is distributed, its source must be made available under AGPLv3. This repository is therefore licensed under AGPLv3 (see LICENSE) and is PUBLIC, which is consistent with AGPL source availability. The PROPRIETARY decision cannot be honoured with these dependencies unless a separate commercial licence is obtained from the Matrix Dart SDK / flutter_vodozemac authors. Do NOT re-license this build as proprietary and do NOT distribute it closed-source.

Build-time verifications (Nov 21, 2026, CT 113)

  • Synapse up: GET https://chat.smithandtech.space/_matrix/client/versions returned HTTP 200; MAS up: GET https://mas.smithandtech.space/ returned HTTP 200; MAS OIDC discovery (/.well-known/openid-configuration) returned the authorize/token endpoints used by the app.
  • MAS OIDC flow in the Dart SDK: the app uses MSC2964 (initOidcLoginSession / oidcLogin) with MSC2966 dynamic client registration against MAS.
  • CAVEAT: Matrix sign-in was never confirmed end-to-end after the MAS move. If sign-in cannot be verified live, that is recorded here: sign-in was NOT verified end-to-end in this build. The app surfaces sign-in errors in the UI instead of failing silently (login screen shows the exact error; MAS OAuth failures are shown in the in-app browser screen).
  • LiveKit: CT 131 LiveKit was stopped at build time, and wss://livekit.smithandtech.space did not resolve, so live calls could NOT be verified end-to-end. The call screen checks LiveKit reachability and reports it, and Jitsi is offered as the option.
  • MoTubeTV / Etherpad / Excalidraw hosts did not resolve at build time (motube.smithandtech.space, etherpad.smithandtech.space, excalidraw.smithandtech.space all returned 000). Their sections open the intended URLs in the in-app browser and show the error instead of failing silently.
  • flutter analyze: 0 errors, 0 warnings (8 info-level notes remain: Flutter 3.50 deprecates package:flutter/material.dart in favour of material_ui, and two curly-brace style notes in the chess code).
  • flutter test: 4 tests passed (config, chess, checkers, spades).
  • flutter build apk --debug: succeeds (see Verification below).
  • flutter build web: succeeds (web build is NOT committed).

Verification (first debug APK)

  • APK: build/app/outputs/flutter-apk/app-debug.apk
  • Size: 247362245 bytes
  • SHA256: 5c38bedb58900cb135d28d141984fd5657d65092a5155a0dcdc7af7fdcb4540b
  • Commit: 4bfb8066b0445d79192da72ab619e3b8dd3cd731
  • aapt dump badging: package space.smithandtech.chat, version 1.0.0
  • MainActivity: classes17.dex
  • The APK in this repo was downloaded back from the Gitea raw link and verified byte-identical (same size + same SHA256, cmp clean).

Build (CT 113)

export TMPDIR=/var/tmp ANDROID_HOME=/opt/android-sdk
# Flutter /root/flutter-3.50.0 ONLY (never /root/flutter 3.47.7); Java 21
flutter pub get
flutter analyze
flutter build apk --debug
flutter build web   # do NOT commit the web build
S
Description
Smith & Tech Chat - Matrix chat for Smith & Tech (Flutter, homeserver chat.smithandtech.space, MAS auth)
Readme AGPL-3.0
1,014 MiB
0 Stars 1 Watchers 0 Forks
Languages
HTML 53.7%
Dart 27.5%
C++ 10.2%
CMake 7.6%
C 0.6%
Other 0.3%