fix: horizontal layout

This commit is contained in:
mso7nueh
2025-07-11 14:05:14 +03:00
parent 27f97d0e11
commit 0749a53e24
5 changed files with 10 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +1,5 @@
String baseUrl = 'https://eatvio.ru';
// String baseUrl = 'https://eatvio.ru';
String baseUrl = 'https://mobile-stage.eatvio.ru';
const List<int> durationValues = [7, 14, 21];

View File

@@ -240,7 +240,6 @@ Future<void> init() async {
'accept': 'application/json',
'content-type': 'application/json',
},
validateStatus: (status) => status != null && status < 500,
),
)..interceptors.addAll(
[

View File

@@ -79,6 +79,9 @@ class _AuthScreenState extends State<AuthScreen> {
@override
Widget build(BuildContext context) {
var shortestSide = MediaQuery.sizeOf(context).shortestSide;
final bool useMobileLayout = shortestSide < 600;
if (!useMobileLayout) isFocused = true;
final s = S.of(context);
FlutterNativeSplash.remove();
return BlocProvider<AuthCubit>(

View File

@@ -89,17 +89,17 @@ class ChatBubbleWidget extends StatelessWidget {
},
leading: const Icon(
Icons.file_copy_outlined,
color: Colors.white,
color: Colors.black,
),
trailing: const Icon(
Icons.download_outlined,
color: Colors.white,
color: Colors.black,
),
title: Text(
mediaData[index].toString().replaceAll('chat_files/', ''),
maxLines: 2,
style: const TextStyle(
color: Colors.white,
color: Colors.black,
fontSize: 12,
overflow: TextOverflow.ellipsis,
),