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.
39 lines
1.2 KiB
Dart
39 lines
1.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:mc_common_app/extensions/string_extensions.dart';
|
|
import 'package:mc_common_app/theme/colors.dart';
|
|
class BuildTimeSlots extends StatelessWidget {
|
|
const BuildTimeSlots({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SizedBox(
|
|
height: 37,
|
|
width: double.infinity,
|
|
child: ListView.builder(
|
|
itemCount: 20,
|
|
scrollDirection: Axis.horizontal,
|
|
itemBuilder: (BuildContext context, int index) {
|
|
return InkWell(
|
|
onTap: () {},
|
|
child: Container(
|
|
alignment: Alignment.center,
|
|
margin: const EdgeInsets.only(right: 8),
|
|
width: 50,
|
|
decoration: BoxDecoration(
|
|
color: index < 1 ? MyColors.darkIconColor : null,
|
|
border: Border.all(
|
|
color: index < 1 ? MyColors.darkIconColor : MyColors.primaryColor,
|
|
width: 2,
|
|
),
|
|
),
|
|
child: "09:00".toText(
|
|
fontSize: 12,
|
|
color: index < 1 ? MyColors.white : null,
|
|
),
|
|
),
|
|
);
|
|
}),
|
|
);
|
|
}
|
|
}
|