You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1021 B
Dart
40 lines
1021 B
Dart
import 'package:car_provider_app/extensions/int_extensions.dart';
|
|
import 'package:car_provider_app/extensions/string_extensions.dart';
|
|
import 'package:car_provider_app/extensions/widget_extensions.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class MyBranchesWidget extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
width: double.infinity,
|
|
child: Row(
|
|
children: [
|
|
showBranch("Olaya Branch"),
|
|
12.width,
|
|
showBranch("Thakhasusi Branch"),
|
|
12.width,
|
|
],
|
|
),
|
|
);
|
|
}
|
|
|
|
Widget showBranch(String title) {
|
|
return SizedBox(
|
|
width: 90,
|
|
child: Column(
|
|
children: [
|
|
Image.asset(
|
|
"assets/images/bn_car.jpeg",
|
|
width: 80,
|
|
height: 80,
|
|
fit: BoxFit.cover,
|
|
).toCircle(borderRadius: 2000),
|
|
8.height,
|
|
title.toText(fontSize: 16, isBold: true, textAlign: TextAlign.center),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|