fix(all): Update the Flutter version
This commit is contained in:
parent
bf653cf556
commit
145bdff33b
@ -1,3 +1,9 @@
|
|||||||
|
plugins {
|
||||||
|
id "com.android.application"
|
||||||
|
id "kotlin-android"
|
||||||
|
id "dev.flutter.flutter-gradle-plugin"
|
||||||
|
}
|
||||||
|
|
||||||
def localProperties = new Properties()
|
def localProperties = new Properties()
|
||||||
def localPropertiesFile = rootProject.file('local.properties')
|
def localPropertiesFile = rootProject.file('local.properties')
|
||||||
if (localPropertiesFile.exists()) {
|
if (localPropertiesFile.exists()) {
|
||||||
@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
|
||||||
if (flutterRoot == null) {
|
|
||||||
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
|
||||||
}
|
|
||||||
|
|
||||||
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
||||||
if (flutterVersionCode == null) {
|
if (flutterVersionCode == null) {
|
||||||
flutterVersionCode = '1'
|
flutterVersionCode = '1'
|
||||||
@ -21,12 +22,8 @@ if (flutterVersionName == null) {
|
|||||||
flutterVersionName = '1.0'
|
flutterVersionName = '1.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
|
||||||
apply plugin: 'kotlin-android'
|
|
||||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 33
|
compileSdkVersion 34
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
@ -67,6 +64,5 @@ flutter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
||||||
implementation "androidx.activity:activity-ktx:1.7.2"
|
implementation "androidx.activity:activity-ktx:1.7.2"
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,3 @@
|
|||||||
buildscript {
|
|
||||||
ext.kotlin_version = '1.8.21'
|
|
||||||
repositories {
|
|
||||||
google()
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
classpath 'com.android.tools.build:gradle:7.1.2'
|
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
@ -1,11 +1,25 @@
|
|||||||
include ':app'
|
pluginManagement {
|
||||||
|
def flutterSdkPath = {
|
||||||
|
def properties = new Properties()
|
||||||
|
file("local.properties").withInputStream { properties.load(it) }
|
||||||
|
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||||
|
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
||||||
|
return flutterSdkPath
|
||||||
|
}()
|
||||||
|
|
||||||
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
|
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
||||||
def properties = new Properties()
|
|
||||||
|
|
||||||
assert localPropertiesFile.exists()
|
repositories {
|
||||||
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
gradlePluginPortal()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
plugins {
|
||||||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
||||||
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
|
id "com.android.application" version "7.1.2" apply false
|
||||||
|
id "org.jetbrains.kotlin.android" version "1.8.21" apply false
|
||||||
|
}
|
||||||
|
|
||||||
|
include ":app"
|
||||||
|
74
flake.lock
74
flake.lock
@ -3,15 +3,15 @@
|
|||||||
"android-nixpkgs": {
|
"android-nixpkgs": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"devshell": "devshell",
|
"devshell": "devshell",
|
||||||
"flake-utils": "flake-utils_2",
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705781728,
|
"lastModified": 1727554699,
|
||||||
"narHash": "sha256-7FBCjLHXFiWN44euZkp9xlvgxgsBLVJC3SGGwxbdVD4=",
|
"narHash": "sha256-puBCNL5PW7Pej+6Srmi2YjEgNeE015NFe33hbkkLqeQ=",
|
||||||
"owner": "tadfisher",
|
"owner": "tadfisher",
|
||||||
"repo": "android-nixpkgs",
|
"repo": "android-nixpkgs",
|
||||||
"rev": "974b9a9fd58b94b8ff5dbabc2c271e1dec857fd2",
|
"rev": "bc34ef1c71fe9eafcfb1d637b431fca83d746625",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -22,7 +22,7 @@
|
|||||||
},
|
},
|
||||||
"bab": {
|
"bab": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_3",
|
"flake-utils": "flake-utils_2",
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
@ -41,18 +41,17 @@
|
|||||||
},
|
},
|
||||||
"devshell": {
|
"devshell": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"android-nixpkgs",
|
"android-nixpkgs",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705332421,
|
"lastModified": 1722113426,
|
||||||
"narHash": "sha256-USpGLPme1IuqG78JNqSaRabilwkCyHmVWY0M9vYyqEA=",
|
"narHash": "sha256-Yo/3loq572A8Su6aY5GP56knpuKYRvM2a1meP9oJZCw=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "devshell",
|
"repo": "devshell",
|
||||||
"rev": "83cb93d6d063ad290beee669f4badf9914cc16ec",
|
"rev": "67cce7359e4cd3c45296fb4aaf6a19e2a9c757ae",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -66,11 +65,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1701680307,
|
"lastModified": 1726560853,
|
||||||
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
|
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
|
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -83,24 +82,6 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_2"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
|
||||||
"lastModified": 1705309234,
|
|
||||||
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils_3": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_3"
|
|
||||||
},
|
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689068808,
|
"lastModified": 1689068808,
|
||||||
"narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
|
"narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=",
|
||||||
@ -115,9 +96,9 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_4": {
|
"flake-utils_3": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_4"
|
"systems": "systems_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1692799911,
|
"lastModified": 1692799911,
|
||||||
@ -135,11 +116,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705496572,
|
"lastModified": 1727348695,
|
||||||
"narHash": "sha256-rPIe9G5EBLXdBdn9ilGc0nq082lzQd0xGGe092R/5QE=",
|
"narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "842d9d80cfd4560648c785f8a4e6f3b096790e19",
|
"rev": "1925c603f17fc89f4c8f6bf6f631a802ad85d784",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -167,11 +148,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705697961,
|
"lastModified": 1727586919,
|
||||||
"narHash": "sha256-XepT3WS516evSFYkme3GrcI3+7uwXHqtHbip+t24J7E=",
|
"narHash": "sha256-e/YXG0tO5GWHDS8QQauj8aj4HhXEm602q9swrrlTlKQ=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e5d1c87f5813afde2dda384ac807c57a105721cc",
|
"rev": "2dcd9c55e8914017226f5948ac22c53872a13ee2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -185,7 +166,7 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"android-nixpkgs": "android-nixpkgs",
|
"android-nixpkgs": "android-nixpkgs",
|
||||||
"bab": "bab",
|
"bab": "bab",
|
||||||
"flake-utils": "flake-utils_4",
|
"flake-utils": "flake-utils_3",
|
||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -233,21 +214,6 @@
|
|||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"systems_4": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
platforms-android-30
|
platforms-android-30
|
||||||
platforms-android-31
|
platforms-android-31
|
||||||
platforms-android-33
|
platforms-android-33
|
||||||
|
platforms-android-34
|
||||||
|
|
||||||
# For flutter_zxing
|
# For flutter_zxing
|
||||||
cmake-3-18-1
|
cmake-3-18-1
|
||||||
|
@ -18,12 +18,12 @@ class ConnectivityService {
|
|||||||
final Logger _log = Logger('ConnectivityService');
|
final Logger _log = Logger('ConnectivityService');
|
||||||
|
|
||||||
/// Caches the current connectivity state
|
/// Caches the current connectivity state
|
||||||
late ConnectivityResult _connectivity;
|
late List<ConnectivityResult> _connectivity;
|
||||||
|
|
||||||
Stream<ConnectivityEvent> get stream => _controller.stream;
|
Stream<ConnectivityEvent> get stream => _controller.stream;
|
||||||
|
|
||||||
@visibleForTesting
|
@visibleForTesting
|
||||||
void setConnectivity(ConnectivityResult result) {
|
void setConnectivity(List<ConnectivityResult> result) {
|
||||||
_log.warning(
|
_log.warning(
|
||||||
'Internal connectivity state changed by request originating from outside ConnectivityService',
|
'Internal connectivity state changed by request originating from outside ConnectivityService',
|
||||||
);
|
);
|
||||||
@ -34,10 +34,10 @@ class ConnectivityService {
|
|||||||
final conn = Connectivity();
|
final conn = Connectivity();
|
||||||
_connectivity = await conn.checkConnectivity();
|
_connectivity = await conn.checkConnectivity();
|
||||||
|
|
||||||
conn.onConnectivityChanged.listen((ConnectivityResult result) {
|
conn.onConnectivityChanged.listen((List<ConnectivityResult> result) {
|
||||||
final regained = _connectivity == ConnectivityResult.none &&
|
final regained = _connectivity.contains(ConnectivityResult.none) &&
|
||||||
result != ConnectivityResult.none;
|
!result.contains(ConnectivityResult.none);
|
||||||
final lost = result == ConnectivityResult.none;
|
final lost = result.contains(ConnectivityResult.none);
|
||||||
_connectivity = result;
|
_connectivity = result;
|
||||||
|
|
||||||
_controller.add(
|
_controller.add(
|
||||||
@ -49,9 +49,9 @@ class ConnectivityService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ConnectivityResult get currentState => _connectivity;
|
List<ConnectivityResult> get currentState => _connectivity;
|
||||||
|
|
||||||
Future<bool> hasConnection() async {
|
Future<bool> hasConnection() async {
|
||||||
return _connectivity != ConnectivityResult.none;
|
return !_connectivity.contains(ConnectivityResult.none);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -457,13 +457,15 @@ Future<void> openFile(String path) async {
|
|||||||
/// bgColor attribute.
|
/// bgColor attribute.
|
||||||
Config getEmojiPickerConfig(Color backgroundColor) {
|
Config getEmojiPickerConfig(Color backgroundColor) {
|
||||||
return Config(
|
return Config(
|
||||||
bgColor: backgroundColor,
|
emojiViewConfig: EmojiViewConfig(
|
||||||
|
backgroundColor: backgroundColor,
|
||||||
// Make the "no recents" text translatable.
|
// Make the "no recents" text translatable.
|
||||||
noRecents: Text(
|
noRecents: Text(
|
||||||
t.emojiPicker.noRecents,
|
t.emojiPicker.noRecents,
|
||||||
style: const TextStyle(fontSize: 20),
|
style: const TextStyle(fontSize: 20),
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,9 +56,9 @@ class SettingsPage extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
SettingsRow(
|
SettingsRow(
|
||||||
title: t.pages.settings.stickers.title,
|
title: t.pages.settings.stickers.title,
|
||||||
prefix: Padding(
|
prefix: const Padding(
|
||||||
padding: const EdgeInsets.only(right: 16),
|
padding: EdgeInsets.only(right: 16),
|
||||||
child: Icon(PhosphorIcons.fill.sticker),
|
child: Icon(PhosphorIconsFill.sticker),
|
||||||
),
|
),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.pushNamed(context, stickersRoute);
|
Navigator.pushNamed(context, stickersRoute);
|
||||||
|
@ -80,18 +80,18 @@ class StickerPacksSettingsState extends State<StickerPacksSettingsPage> {
|
|||||||
),
|
),
|
||||||
description: snapshot.data![index].description,
|
description: snapshot.data![index].description,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
prefix: Padding(
|
prefix: const Padding(
|
||||||
padding: const EdgeInsets.only(right: 16),
|
padding: EdgeInsets.only(right: 16),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: 48,
|
width: 48,
|
||||||
height: 48,
|
height: 48,
|
||||||
// TODO(PapaTutuWawa): Sticker pack thumbnails would be nice
|
// TODO(PapaTutuWawa): Sticker pack thumbnails would be nice
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: const BorderRadius.all(radiusLarge),
|
borderRadius: BorderRadius.all(radiusLarge),
|
||||||
child: ColoredBox(
|
child: ColoredBox(
|
||||||
color: Colors.white60,
|
color: Colors.white60,
|
||||||
child: Icon(
|
child: Icon(
|
||||||
PhosphorIcons.regular.sticker,
|
PhosphorIconsRegular.sticker,
|
||||||
size: 32,
|
size: 32,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -7,13 +7,13 @@ class UIConnectivityService {
|
|||||||
final _conn = Connectivity();
|
final _conn = Connectivity();
|
||||||
|
|
||||||
/// The cached connection state.
|
/// The cached connection state.
|
||||||
ConnectivityResult _state = ConnectivityResult.none;
|
List<ConnectivityResult> _state = [ConnectivityResult.none];
|
||||||
ConnectivityResult get status => _state;
|
List<ConnectivityResult> get status => _state;
|
||||||
|
|
||||||
/// The subscription to the event stream
|
/// The subscription to the event stream
|
||||||
late StreamSubscription<ConnectivityResult> _subscription;
|
late StreamSubscription<List<ConnectivityResult>> _subscription;
|
||||||
|
|
||||||
bool get hasConnection => _state != ConnectivityResult.none;
|
bool get hasConnection => !_state.contains(ConnectivityResult.none);
|
||||||
|
|
||||||
/// Initializes the event stream and populates the cache.
|
/// Initializes the event stream and populates the cache.
|
||||||
Future<void> initialize() async {
|
Future<void> initialize() async {
|
||||||
|
@ -121,10 +121,10 @@ class MessageBubbleBottomState extends State<MessageBubbleBottom> {
|
|||||||
),
|
),
|
||||||
if (widget.message.stickerPackId != null &&
|
if (widget.message.stickerPackId != null &&
|
||||||
!GetIt.I.get<PreferencesCubit>().state.enableStickers)
|
!GetIt.I.get<PreferencesCubit>().state.enableStickers)
|
||||||
Padding(
|
const Padding(
|
||||||
padding: const EdgeInsets.only(left: 3),
|
padding: EdgeInsets.only(left: 3),
|
||||||
child: Icon(
|
child: Icon(
|
||||||
PhosphorIcons.regular.sticker,
|
PhosphorIconsRegular.sticker,
|
||||||
size: _bubbleBottomIconSize,
|
size: _bubbleBottomIconSize,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
|
@ -49,10 +49,10 @@ class StickerChatWidget extends StatelessWidget {
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
const Padding(
|
||||||
padding: const EdgeInsets.only(right: 8),
|
padding: EdgeInsets.only(right: 8),
|
||||||
child: Icon(
|
child: Icon(
|
||||||
PhosphorIcons.regular.sticker,
|
PhosphorIconsRegular.sticker,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
|
@ -49,10 +49,10 @@ class QuotedStickerWidget extends StatelessWidget {
|
|||||||
Row(
|
Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
const Padding(
|
||||||
padding: const EdgeInsets.only(right: 8),
|
padding: const EdgeInsets.only(right: 8),
|
||||||
child: Icon(
|
child: Icon(
|
||||||
PhosphorIcons.regular.sticker,
|
PhosphorIconsRegular.sticker,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
|
@ -45,9 +45,9 @@ class CombinedPicker extends StatelessWidget {
|
|||||||
TabBar(
|
TabBar(
|
||||||
controller: tabController,
|
controller: tabController,
|
||||||
indicatorColor: primaryColor,
|
indicatorColor: primaryColor,
|
||||||
tabs: [
|
tabs: const [
|
||||||
const Tab(icon: Icon(Icons.insert_emoticon)),
|
Tab(icon: Icon(Icons.insert_emoticon)),
|
||||||
Tab(icon: Icon(PhosphorIcons.regular.sticker)),
|
Tab(icon: Icon(PhosphorIconsRegular.sticker)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
@ -251,8 +251,8 @@ class ConversationCard extends StatelessWidget {
|
|||||||
size: 20,
|
size: 20,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
preview = Icon(
|
preview = const Icon(
|
||||||
PhosphorIcons.regular.sticker,
|
PhosphorIconsRegular.sticker,
|
||||||
size: 20,
|
size: 20,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ class MobileMessagingTextFieldController {
|
|||||||
bool requestingPermission = false;
|
bool requestingPermission = false;
|
||||||
|
|
||||||
/// The audio recorder.
|
/// The audio recorder.
|
||||||
final Record _recorder = Record();
|
final AudioRecorder _recorder = AudioRecorder();
|
||||||
|
|
||||||
/// The JID of the currently opened chat.
|
/// The JID of the currently opened chat.
|
||||||
final String conversationJid;
|
final String conversationJid;
|
||||||
@ -107,6 +107,7 @@ class MobileMessagingTextFieldController {
|
|||||||
filename,
|
filename,
|
||||||
);
|
);
|
||||||
await _recorder.start(
|
await _recorder.start(
|
||||||
|
const RecordConfig(),
|
||||||
path: recordingFilePath,
|
path: recordingFilePath,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ class EmojiStickerPickerIcon extends StatelessWidget {
|
|||||||
? Icons.keyboard
|
? Icons.keyboard
|
||||||
: (tabController.index == 0
|
: (tabController.index == 0
|
||||||
? Icons.emoji_emotions
|
? Icons.emoji_emotions
|
||||||
: PhosphorIcons.regular.sticker),
|
: PhosphorIconsRegular.sticker),
|
||||||
size: iconSize,
|
size: iconSize,
|
||||||
color: primaryColor,
|
color: primaryColor,
|
||||||
),
|
),
|
||||||
|
716
pubspec.lock
716
pubspec.lock
File diff suppressed because it is too large
Load Diff
105
pubspec.yaml
105
pubspec.yaml
@ -7,49 +7,49 @@ version: 0.5.1+14
|
|||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.0.0 <4.0.0"
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
flutter: "3.7.3"
|
flutter: "3.24.1"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
archive: ^3.3.9
|
archive: ^3.6.1
|
||||||
audiofileplayer: 2.1.1
|
audiofileplayer: 2.1.1
|
||||||
auto_size_text: 3.0.0
|
auto_size_text: 3.0.0
|
||||||
badges: ^3.1.2
|
badges: ^3.1.2
|
||||||
better_open_file: ^3.6.4
|
better_open_file: ^3.6.5
|
||||||
bloc: ^8.1.2
|
bloc: ^8.1.4
|
||||||
collection: ^1.16.0
|
collection: ^1.18.0
|
||||||
connectivity_plus: ^4.0.2
|
connectivity_plus: ^6.0.5
|
||||||
cropperx: 1.1.1
|
cropperx: 1.1.1
|
||||||
cryptography: ^2.6.0
|
cryptography: ^2.7.0
|
||||||
#cupertino_icons: 1.0.2
|
#cupertino_icons: 1.0.2
|
||||||
dart_emoji: 0.2.0+2
|
dart_emoji: 0.2.0+2
|
||||||
decorated_icon: 1.2.1
|
decorated_icon: 1.2.1
|
||||||
dynamic_color: 1.6.8
|
dynamic_color: ^1.7.0
|
||||||
emoji_picker_flutter: ^1.6.1
|
emoji_picker_flutter: ^3.1.0
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_bloc: ^8.1.3
|
flutter_bloc: ^8.1.6
|
||||||
flutter_blurhash: 0.8.2
|
flutter_blurhash: 0.8.2
|
||||||
flutter_contacts: ^1.1.7+1
|
flutter_contacts: ^1.1.9+2
|
||||||
flutter_image_compress: ^2.0.4
|
flutter_image_compress: ^2.3.0
|
||||||
flutter_isolate: ^2.0.4
|
flutter_isolate: ^2.1.0
|
||||||
flutter_keyboard_visibility: ^5.4.1
|
flutter_keyboard_visibility: ^6.0.0
|
||||||
flutter_localizations:
|
flutter_localizations:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_parsed_text: 2.2.1
|
flutter_parsed_text: 2.2.1
|
||||||
flutter_secure_storage: ^9.0.0
|
flutter_secure_storage: ^9.2.2
|
||||||
flutter_speed_dial: ^7.0.0
|
flutter_speed_dial: ^7.0.0
|
||||||
flutter_vibrate: 1.3.0
|
flutter_vibrate: 1.3.0
|
||||||
flutter_zxing: ^1.4.1
|
flutter_zxing: ^1.7.0
|
||||||
fluttertoast: ^8.2.2
|
fluttertoast: ^8.2.8
|
||||||
freezed_annotation: ^2.4.1
|
freezed_annotation: ^2.4.4
|
||||||
get_it: ^7.6.4
|
get_it: ^7.7.0
|
||||||
grouped_list: 5.1.2
|
grouped_list: ^6.0.0
|
||||||
hex: 0.2.0
|
hex: 0.2.0
|
||||||
image: ^4.0.17
|
image: ^4.2.0
|
||||||
json_annotation: ^4.8.1
|
json_annotation: ^4.9.0
|
||||||
logging: ^1.2.0
|
logging: ^1.2.0
|
||||||
meta: ^1.7.0
|
meta: ^1.15.0
|
||||||
mime: ^1.0.4
|
mime: ^1.0.6
|
||||||
move_to_background:
|
move_to_background:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/ViliusP/move_to_background.git
|
url: https://github.com/ViliusP/move_to_background.git
|
||||||
@ -75,50 +75,50 @@ dependencies:
|
|||||||
moxxyv2_builders:
|
moxxyv2_builders:
|
||||||
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
||||||
version: 0.2.1
|
version: 0.2.1
|
||||||
native_imaging: 0.1.0
|
native_imaging: ^0.1.1
|
||||||
omemo_dart:
|
omemo_dart:
|
||||||
hosted: https://git.polynom.me/api/packages/PapaTutuWawa/pub
|
hosted: https://git.polynom.me/api/packages/PapaTutuWawa/pub
|
||||||
version: 0.5.1
|
version: 0.6.0
|
||||||
page_transition: ^2.1.0
|
page_transition: ^2.1.0
|
||||||
path: ^1.8.3
|
path: ^1.9.0
|
||||||
path_provider: ^2.1.1
|
path_provider: ^2.1.4
|
||||||
permission_handler: ^11.0.0
|
permission_handler: ^11.3.1
|
||||||
phosphor_flutter: ^2.0.0
|
phosphor_flutter: ^2.1.0
|
||||||
qr_flutter: ^4.1.0
|
qr_flutter: ^4.1.0
|
||||||
random_string: 2.3.1
|
random_string: 2.3.1
|
||||||
record: ^4.4.4
|
record: ^5.1.2
|
||||||
share_handler: ^0.0.17
|
share_handler: ^0.0.21
|
||||||
slang: 3.23.0
|
slang: ^3.31.2
|
||||||
slang_flutter: 3.23.0
|
slang_flutter: ^3.31.0
|
||||||
sqflite_common: ^2.5.0
|
sqflite_common: ^2.5.4+4
|
||||||
sqflite_sqlcipher: ^2.2.1
|
sqflite_sqlcipher: ^3.1.0+1
|
||||||
#scrollable_positioned_list: 0.2.3
|
#scrollable_positioned_list: 0.2.3
|
||||||
swipeable_tile:
|
swipeable_tile:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/PapaTutuWawa/swipeable_tile.git
|
url: https://github.com/PapaTutuWawa/swipeable_tile.git
|
||||||
ref: bfab5e28f1f1ea624232002f0d05481cb2bd9997
|
ref: bfab5e28f1f1ea624232002f0d05481cb2bd9997
|
||||||
synchronized: ^3.1.0
|
synchronized: ^3.3.0+3
|
||||||
udp: 5.0.3
|
udp: 5.0.3
|
||||||
url_launcher: ^6.1.14
|
url_launcher: ^6.3.0
|
||||||
#unifiedpush: 3.0.1
|
#unifiedpush: 3.0.1
|
||||||
uuid: ^3.0.7
|
uuid: ^3.0.7
|
||||||
video_player: ^2.7.2
|
video_player: ^2.9.1
|
||||||
visibility_detector: 0.4.0+2
|
visibility_detector: 0.4.0+2
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
build_runner: ^2.4.6
|
build_runner: ^2.4.12
|
||||||
flutter_launcher_icons: ^0.13.1
|
flutter_launcher_icons: ^0.14.1
|
||||||
flutter_lints: ^2.0.1
|
flutter_lints: ^5.0.0
|
||||||
#flutter_test:
|
#flutter_test:
|
||||||
# sdk: flutter
|
# sdk: flutter
|
||||||
freezed: ^2.1.0+1
|
freezed: ^2.5.7
|
||||||
#integration_test:
|
#integration_test:
|
||||||
# sdk: flutter
|
# sdk: flutter
|
||||||
json_serializable: ^6.3.1
|
json_serializable: ^6.8.0
|
||||||
pigeon: 11.0.1
|
pigeon: ^22.4.1
|
||||||
slang_build_runner: 3.23.0
|
slang_build_runner: ^3.31.0
|
||||||
test: ^1.21.1
|
test: ^1.25.7
|
||||||
very_good_analysis: ^5.1.0
|
very_good_analysis: ^6.0.0
|
||||||
|
|
||||||
dependency_overrides:
|
dependency_overrides:
|
||||||
# NOTE: Leave here for development purposes
|
# NOTE: Leave here for development purposes
|
||||||
@ -127,14 +127,19 @@ dependency_overrides:
|
|||||||
# moxxmpp_socket_tcp:
|
# moxxmpp_socket_tcp:
|
||||||
# path: ../moxxmpp/packages/moxxmpp_socket_tcp
|
# path: ../moxxmpp/packages/moxxmpp_socket_tcp
|
||||||
# omemo_dart:
|
# omemo_dart:
|
||||||
# path: ../../Personal/omemo_dart
|
# path: ../omemo_dart
|
||||||
|
|
||||||
moxxmpp:
|
moxxmpp:
|
||||||
git:
|
git:
|
||||||
url: https://codeberg.org/moxxy/moxxmpp.git
|
url: https://codeberg.org/moxxy/moxxmpp.git
|
||||||
rev: 365ff2f23850b1808d3f6ea39c3789badf39ad7b
|
rev: db77790bf4caa6a35dd1b3121306050ff8d73681
|
||||||
path: packages/moxxmpp
|
path: packages/moxxmpp
|
||||||
|
|
||||||
|
omemo_dart:
|
||||||
|
git:
|
||||||
|
url: https://github.com/PapaTutuWawa/omemo_dart.git
|
||||||
|
rev: 124c997fa3f0792fa50ff66b80f43c3b71382f89
|
||||||
|
|
||||||
# NOTE: Leave here for development purposes
|
# NOTE: Leave here for development purposes
|
||||||
# moxxy_native:
|
# moxxy_native:
|
||||||
# path: ../moxxy_native
|
# path: ../moxxy_native
|
||||||
|
Loading…
Reference in New Issue
Block a user