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.
66 lines
1.9 KiB
Dart
66 lines
1.9 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../config/size_config.dart';
|
|
import '../widgets/shared/app_scaffold_widget.dart';
|
|
import '../widgets/shared/card_with_bg_widget.dart';
|
|
|
|
class MyScheduleScreen extends StatelessWidget {
|
|
List<String> litems = [
|
|
"1",
|
|
"2",
|
|
];
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return AppScaffold(
|
|
// pageOnly: false,
|
|
appBarTitle: 'My Schdule',
|
|
body: Container(
|
|
padding: EdgeInsetsDirectional.fromSTEB(30, 0, 30, 0),
|
|
child: ListView(children: <Widget>[
|
|
Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: <Widget>[
|
|
Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: <Widget>[
|
|
SizedBox(
|
|
height: 20,
|
|
),
|
|
Text('My Schedule', style: textStyle(2.5, FontWeight.w700)),
|
|
scheduleListByDate('Today, 7 April '),
|
|
scheduleListByDate('Wednesday, 8 April '),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
]),
|
|
));
|
|
}
|
|
|
|
Column scheduleListByDate(date) {
|
|
return Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: <Widget>[
|
|
SizedBox(
|
|
height: 10,
|
|
),
|
|
Text(date, style: textStyle(2.5)),
|
|
Container(
|
|
child: Column(
|
|
children: litems.map((item) {
|
|
return CardWithBgWidget(line1Text: 'ER new development ideas meeting',line2Text:'09:00 AM - 10:50 AM',line3Text: 'Cloud Solution',icon: Icons.add_location, heightPercentage: 0.20, widthPercentage: 0.80,);
|
|
}).toList(),
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
|
|
TextStyle textStyle(size, [FontWeight weight]) {
|
|
return TextStyle(
|
|
fontSize: size * SizeConfig.textMultiplier, fontWeight: weight);
|
|
}
|
|
}
|
|
|