Merge branch 'development' into 'master'

Development

See merge request Cloud_Solution/driver-app!102
location
Elham 5 years ago
commit c7c51ff55a

File diff suppressed because one or more lines are too long

@ -55,7 +55,7 @@ class Utils {
List<String> formattedNamesList = [];
names.forEach((name) {
name = name.toLowerCase();
name = name[0].toUpperCase() + name.substring(1);
name = name != "" ? name[0].toUpperCase() + name.substring(1) : "";
formattedNamesList.add(name);
});

@ -2,6 +2,7 @@ import 'package:driverapp/config/size_config.dart';
import 'package:driverapp/uitl/utils.dart';
import 'package:driverapp/widgets/delivery/distance_in_kilometers.dart';
import 'package:flutter/material.dart';
import 'package:hexcolor/hexcolor.dart';
import '../../uitl/date_uitl.dart';
import '../../uitl/translations_delegate_base.dart';
@ -36,6 +37,8 @@ class CustomerBriefCard extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Center(
child: Padding(
padding: EdgeInsets.only(bottom: 0.0),
child: Container(
width: MediaQuery.of(context).orientation == Orientation.landscape
? SizeConfig.widthMultiplier * 125.0
@ -91,10 +94,9 @@ class CustomerBriefCard extends StatelessWidget {
Utils.formatStringToPascalCase(
'${customerFirstName} ${customerLastName}'),
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.w500,
color: Color(0xff343333),
fontFamily: 'Metropolis',
fontWeight: FontWeight.bold,
fontSize: 20.0,
),
),
SizedBox(
@ -178,6 +180,7 @@ class CustomerBriefCard extends StatelessWidget {
),
),
),
),
);
}
}

Loading…
Cancel
Save