mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-28 16:58:41 +01:00
UI adjstments
This commit is contained in:
@@ -321,8 +321,7 @@ class _SupportChatPageState extends State<SupportChatPage> with WidgetsBindingOb
|
||||
child: ListView(
|
||||
padding: const EdgeInsets.symmetric(vertical: 12),
|
||||
children: [
|
||||
for (final group in groups)
|
||||
SupportMessageGroup(messages: group, service: _service, meta: meta),
|
||||
for (final group in groups) SupportMessageGroup(messages: group, service: _service, meta: meta),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
@@ -33,7 +33,7 @@ class SupportMessageBubble extends StatelessWidget {
|
||||
final cs = Theme.of(context).colorScheme;
|
||||
final isUser = message.senderRole == SupportMessageSenderRole.user;
|
||||
final alignment = isUser ? AxisAlignmentDirectional.end : AxisAlignmentDirectional.start;
|
||||
final bubbleColor = isUser ? cs.primary.withAlpha(38) : cs.card;
|
||||
final bubbleColor = isUser ? cs.primary.withAlpha(38) : cs.secondary;
|
||||
|
||||
return ChatBubble(
|
||||
alignment: alignment,
|
||||
@@ -47,7 +47,7 @@ class SupportMessageBubble extends StatelessWidget {
|
||||
children: [
|
||||
if (showSenderLabel)
|
||||
Text(
|
||||
isUser ? context.i18n.senderYou : context.i18n.senderAdmin,
|
||||
isUser ? context.i18n.senderYou : 'Jonas @ BikeControl',
|
||||
style: TextStyle(
|
||||
fontSize: 11,
|
||||
fontWeight: FontWeight.w600,
|
||||
|
||||
@@ -43,10 +43,17 @@ class SupportMessageGroup extends StatelessWidget {
|
||||
child: ChatGroup(
|
||||
avatarPrefix: isUser
|
||||
? null
|
||||
: const Avatar(
|
||||
initials: 'OB',
|
||||
size: 38,
|
||||
provider: AssetImage('openbikecontrol.png'),
|
||||
: Container(
|
||||
// rounded background to match the avatar shape, since shadcn doesn't support
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
child: const Avatar(
|
||||
initials: 'OB',
|
||||
size: 52,
|
||||
provider: AssetImage('jonas.jpg'),
|
||||
),
|
||||
),
|
||||
children: [
|
||||
for (var i = 0; i < messages.length; i++)
|
||||
|
||||
@@ -66,8 +66,6 @@ PODS:
|
||||
- FlutterMacOS
|
||||
- in_app_review (2.0.0):
|
||||
- FlutterMacOS
|
||||
- ios_receipt (0.0.1):
|
||||
- FlutterMacOS
|
||||
- just_audio (0.0.1):
|
||||
- Flutter
|
||||
- FlutterMacOS
|
||||
@@ -124,7 +122,6 @@ DEPENDENCIES:
|
||||
- google_sign_in_ios (from `Flutter/ephemeral/.symlinks/plugins/google_sign_in_ios/darwin`)
|
||||
- in_app_purchase_storekit (from `Flutter/ephemeral/.symlinks/plugins/in_app_purchase_storekit/darwin`)
|
||||
- in_app_review (from `Flutter/ephemeral/.symlinks/plugins/in_app_review/macos`)
|
||||
- ios_receipt (from `Flutter/ephemeral/.symlinks/plugins/ios_receipt/macos`)
|
||||
- just_audio (from `Flutter/ephemeral/.symlinks/plugins/just_audio/darwin`)
|
||||
- keypress_simulator_macos (from `Flutter/ephemeral/.symlinks/plugins/keypress_simulator_macos/macos`)
|
||||
- media_key_detector_macos (from `Flutter/ephemeral/.symlinks/plugins/media_key_detector_macos/macos`)
|
||||
@@ -184,8 +181,6 @@ EXTERNAL SOURCES:
|
||||
:path: Flutter/ephemeral/.symlinks/plugins/in_app_purchase_storekit/darwin
|
||||
in_app_review:
|
||||
:path: Flutter/ephemeral/.symlinks/plugins/in_app_review/macos
|
||||
ios_receipt:
|
||||
:path: Flutter/ephemeral/.symlinks/plugins/ios_receipt/macos
|
||||
just_audio:
|
||||
:path: Flutter/ephemeral/.symlinks/plugins/just_audio/darwin
|
||||
keypress_simulator_macos:
|
||||
@@ -239,7 +234,6 @@ SPEC CHECKSUMS:
|
||||
GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6
|
||||
in_app_purchase_storekit: 2342c0a5da86593124d08dd13d920f39a52b273a
|
||||
in_app_review: 866c9b17c87a7b46a395bda43f5d3ca02deb585a
|
||||
ios_receipt: 8741a75f39e6ca0866313b73c69a5b674cf5c98c
|
||||
just_audio: a42c63806f16995daf5b219ae1d679deb76e6a79
|
||||
keypress_simulator_macos: f8556f9101f9f2f175652e0bceddf0fe82a4c6b2
|
||||
media_key_detector_macos: a93757a483b4b47283ade432b1af9e427c47329f
|
||||
|
||||
2
prop
2
prop
Submodule prop updated: 166dbb792f...463589bd59
@@ -848,7 +848,7 @@ packages:
|
||||
source: hosted
|
||||
version: "1.6.0"
|
||||
http_parser:
|
||||
dependency: transitive
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: http_parser
|
||||
sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571"
|
||||
|
||||
@@ -125,6 +125,7 @@ flutter:
|
||||
- assets/contours/
|
||||
- icon.png
|
||||
- openbikecontrol.png
|
||||
- jonas.jpg
|
||||
|
||||
flutter_intl:
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user