update readme and remove unneeded deps

This commit is contained in:
Henry Hiles 2026-02-02 21:48:08 +01:00
commit 06a25b89e6
No known key found for this signature in database
4 changed files with 20 additions and 40 deletions

View file

@ -36,7 +36,7 @@ A simple and user-friendly Matrix client made with Flutter and the Matrix Dart S
- [x] Using a text/uri/link - [x] Using a text/uri/link
- [x] Plain text - [x] Plain text
- [x] `matrix:` Uri - [x] `matrix:` Uri
- [ ] Matrix.to link: I just need to fix my regex - [ ] Matrix.to link: I just need to fix my regex, I should do this next.
- [ ] From space - [ ] From space
- [ ] Exploring - [ ] Exploring
- [x] Leaving - [x] Leaving
@ -108,7 +108,7 @@ A simple and user-friendly Matrix client made with Flutter and the Matrix Dart S
- [ ] About - [ ] About
- [x] Log Out - [x] Log Out
## Development ## Build Instructions
First, clone and open the repo: First, clone and open the repo:
@ -122,13 +122,13 @@ cd nexus
#### Linux #### Linux
- With Nix: Either use direnv, or `nix flake develop` - With Nix: Either use direnv, or `nix flake develop`
- Without Nix: Install Flutter, Rust, the libsecret dev package for your distro (must be in `PKG_CONFIG_PATH`), and sqlite (must be in `LD_LIBRARY_PATH`). - Without Nix: Install Flutter, Go, Olm, Git, Clang, and GLibc.
#### Windows / MacOS #### Windows / MacOS
I don't really know. You will need Flutter and Rust, and otherwise I guess just keep installing stuff until there aren't any errors. I don't really know. You will need Flutter, Git, Olm, Go, and Visual Studio tools, and otherwise I guess just keep installing stuff until there aren't any errors. I will look into this sometimeTM.
### ### Set up Flutter
Get dependencies: Get dependencies:
@ -136,6 +136,18 @@ Get dependencies:
flutter pub get flutter pub get
``` ```
Get dependencies:
```sh
flutter pub get
```
Clone Gomuks and generate bindings:
```sh
scripts/generate.sh
```
Build generated files, and watch for new changes: Build generated files, and watch for new changes:
```sh ```sh

View file

@ -45,17 +45,11 @@
olm olm
git git
clang clang
(flutter.override { extraPkgConfigPackages = [ pkgs.libsecret ]; }) flutter
(pkgs.writeShellScriptBin "rustup" (builtins.readFile ./nix/fake-rustup.sh))
]; ];
env = { env = {
LD_LIBRARY_PATH = "${ LD_LIBRARY_PATH = "./build/native_assets/linux";
pkgs.lib.makeLibraryPath ([
pkgs.sqlite
])
}:./build/native_assets/linux";
CPATH = lib.makeSearchPath "include" [ pkgs.glibc.dev ]; CPATH = lib.makeSearchPath "include" [ pkgs.glibc.dev ];
}; };
}; };

View file

@ -1,19 +0,0 @@
import "package:flutter_riverpod/flutter_riverpod.dart";
import "package:flutter_secure_storage/flutter_secure_storage.dart";
class SecureStorageController extends Notifier<FlutterSecureStorage> {
@override
FlutterSecureStorage build() => FlutterSecureStorage();
Future<String?> get(String key) => state.read(key: key);
Future<void> set(String key, String value) =>
state.write(key: key, value: value);
Future<void> clear() => state.deleteAll();
static final provider =
NotifierProvider<SecureStorageController, FlutterSecureStorage>(
SecureStorageController.new,
);
}

View file

@ -1,18 +1,11 @@
import "package:flutter/material.dart"; import "package:flutter/material.dart";
import "package:flutter_riverpod/flutter_riverpod.dart"; import "package:flutter_riverpod/flutter_riverpod.dart";
import "package:nexus/controllers/secure_storage_controller.dart";
class SettingsPage extends ConsumerWidget { class SettingsPage extends ConsumerWidget {
const SettingsPage({super.key}); const SettingsPage({super.key});
@override @override
Widget build(BuildContext context, WidgetRef ref) { Widget build(BuildContext context, WidgetRef ref) {
return Scaffold( return Placeholder();
appBar: AppBar(title: Text("Settings")),
body: ElevatedButton(
onPressed: ref.watch(SecureStorageController.provider.notifier).clear,
child: Text("Log out"),
),
);
} }
} }