forked from eatvio/eatvio_app
chats have been updated to work with consultatons
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// String baseUrl = 'https://eatvio.ru';
|
||||
String baseUrl = 'http://10.55.5.123:8080';
|
||||
String baseUrl = 'https://dev2.eatvio.com';
|
||||
|
||||
const List<int> durationValues = [7, 14, 21];
|
||||
|
||||
|
||||
@@ -184,6 +184,7 @@ class PrimaryColors {
|
||||
Color get dottedBorder => Color(0xFFE6E6E6);
|
||||
|
||||
Color get red => Color(0xFFCD4141);
|
||||
Color get strongRed => Color(0xFFD01717);
|
||||
|
||||
Color get transparentRed => Color(0xFFCD4141).withValues(alpha: 0.75);
|
||||
|
||||
|
||||
47
lib/core/widgets/item_widget.dart
Normal file
47
lib/core/widgets/item_widget.dart
Normal file
@@ -0,0 +1,47 @@
|
||||
import 'package:eatvio_app/core/theme/custom_text_style.dart';
|
||||
import 'package:eatvio_app/core/theme/theme_helper.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
|
||||
class ItemWidget extends StatelessWidget {
|
||||
const ItemWidget({super.key, required this.text, this.reversed = false, this.iconSize = 20});
|
||||
final String text;
|
||||
final bool reversed;
|
||||
final double iconSize;
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (reversed) {
|
||||
return Row(
|
||||
children: [
|
||||
SvgPicture.asset(
|
||||
'assets/icons/ok.svg',
|
||||
width: iconSize,
|
||||
height: iconSize,
|
||||
),
|
||||
SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: Text(
|
||||
text,
|
||||
style: TextStyles.textMMedium.copyWith(color: appTheme.black),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
return Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
text,
|
||||
style: TextStyles.textMMedium.copyWith(color: appTheme.black),
|
||||
),
|
||||
),
|
||||
SvgPicture.asset(
|
||||
'assets/icons/ok.svg',
|
||||
width: iconSize,
|
||||
height: iconSize,
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user