add vodozemac
This commit is contained in:
parent
f0a397f576
commit
ec48e3ae96
8 changed files with 53 additions and 8 deletions
|
|
@ -44,9 +44,10 @@
|
|||
pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
jdk17
|
||||
rustc
|
||||
cargo
|
||||
flutter
|
||||
android.platform-tools
|
||||
(pkgs.writeShellScriptBin "rustup" (builtins.readFile ./nix/fake-rustup.sh))
|
||||
];
|
||||
env = rec {
|
||||
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath (with pkgs; [ sqlite ])}:$LD_LIBRARY_PATH";
|
||||
|
|
|
|||
|
|
@ -121,7 +121,10 @@ extension ToMessage on Event {
|
|||
}
|
||||
|
||||
extension ToTheme on ColorScheme {
|
||||
ThemeData get theme => ThemeData.from(
|
||||
colorScheme: this,
|
||||
).copyWith(appBarTheme: AppBarTheme(titleSpacing: 0));
|
||||
ThemeData get theme => ThemeData.from(colorScheme: this).copyWith(
|
||||
appBarTheme: AppBarTheme(
|
||||
titleSpacing: 0,
|
||||
backgroundColor: surfaceContainerLow,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,9 +20,6 @@ class MemberList extends ConsumerWidget {
|
|||
children: [
|
||||
AppBar(
|
||||
scrolledUnderElevation: 0,
|
||||
backgroundColor: Theme.of(
|
||||
context,
|
||||
).colorScheme.surfaceContainerLow,
|
||||
leading: Icon(Icons.people),
|
||||
title: Text("Members"),
|
||||
actionsPadding: EdgeInsets.only(right: 4),
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ class RoomAppbar extends StatelessWidget implements PreferredSizeWidget {
|
|||
)
|
||||
: DrawerButton(onPressed: () => onOpenDrawer(context)),
|
||||
scrolledUnderElevation: 0,
|
||||
backgroundColor: Theme.of(context).colorScheme.surfaceContainerLow,
|
||||
actionsPadding: EdgeInsets.symmetric(horizontal: 8),
|
||||
title: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
|
|||
)
|
||||
|
||||
list(APPEND FLUTTER_FFI_PLUGIN_LIST
|
||||
flutter_vodozemac
|
||||
)
|
||||
|
||||
set(PLUGIN_BUNDLED_LIBRARIES)
|
||||
|
|
|
|||
35
nix/fake-rustup.sh
Normal file
35
nix/fake-rustup.sh
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#!/usr/bin/env bash
|
||||
# Fake rustup for nix-managed Rust toolchains
|
||||
|
||||
case "$1" in
|
||||
run)
|
||||
if [[ "$2" == "stable" ]]; then
|
||||
shift 2
|
||||
if [[ $# -eq 0 ]]; then
|
||||
echo "fake rustup: no command given" >&2
|
||||
exit 1
|
||||
fi
|
||||
exec "$@"
|
||||
exit 0
|
||||
fi
|
||||
;;
|
||||
|
||||
toolchain)
|
||||
if [[ "$2" == "list" ]]; then
|
||||
echo "stable (default)"
|
||||
exit 0
|
||||
fi
|
||||
;;
|
||||
|
||||
target)
|
||||
if [[ "$2" == "list" && "$3" == "--toolchain" && "$4" == "stable" && "$5" == "--installed" ]]; then
|
||||
echo "x86_64-unknown-linux-gnu"
|
||||
exit 0
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "fake rustup: the command:" >&2
|
||||
echo " rustup $*" >&2
|
||||
echo "…is not mocked yet" >&2
|
||||
exit 1
|
||||
|
|
@ -577,6 +577,14 @@ packages:
|
|||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
flutter_vodozemac:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: flutter_vodozemac
|
||||
sha256: "16d4b44dd338689441fe42a80d0184e5c864e9563823de9e7e6371620d2c0590"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.4.1"
|
||||
flutter_web_plugins:
|
||||
dependency: transitive
|
||||
description: flutter
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ dependencies:
|
|||
color_hash: ^1.0.1
|
||||
scaled_app: ^2.3.0
|
||||
html2md: ^1.3.2
|
||||
flutter_vodozemac: ^0.4.1
|
||||
|
||||
dev_dependencies:
|
||||
build_runner: ^2.4.11
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue