flutter_date_time_picker/example/lib/main.dart
Thomas Klein Langenhorst c8d86163e2 initial commit
2022-08-26 09:56:44 +02:00

104 lines
3.3 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flutter_date_time_picker/flutter_date_time_picker.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
// This is the theme of your application.
//
// Try running your application with "flutter run". You'll see the
// application has a blue toolbar. Then, without quitting the app, try
// changing the primarySwatch below to Colors.green and then invoke
// "hot reload" (press "r" in the console where you ran "flutter run",
// or simply save your changes to "hot reload" in a Flutter IDE).
// Notice that the counter didn't reset back to zero; the application
// is not restarted.
primarySwatch: Colors.blue,
),
home: MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('Rooster')),
body: DateTimePicker(
// header: Container(
// height: 100,
// width: MediaQuery.of(context).size.width,
// padding: const EdgeInsets.only(bottom: 10),
// child: Row(
// crossAxisAlignment: CrossAxisAlignment.end,
// mainAxisAlignment: MainAxisAlignment.center,
// children: [
// const SizedBox(
// width: 160,
// height: 34,
// child: Center(
// child: Text(
// 'Persoonlijk',
// style: TextStyle(
// fontSize: 16,
// fontWeight: FontWeight.w900,
// ),
// ),
// ),
// ),
// const SizedBox(
// width: 4,
// ),
// Container(
// width: 160,
// height: 34,
// decoration: BoxDecoration(
// color: const Color(0xFF00273D),
// borderRadius: const BorderRadius.all(
// Radius.circular(10),
// ),
// boxShadow: [
// BoxShadow(
// color: const Color(0xFF000000).withOpacity(0.50),
// offset: const Offset(0, 6),
// blurRadius: 9,
// ),
// ],
// ),
// child: const Center(
// child: Text(
// 'Teamplanning',
// style: TextStyle(
// color: Colors.white,
// fontSize: 16,
// fontWeight: FontWeight.w900,
// ),
// ),
// ),
// ),
// ],
// ),
// ),
markedDates: [DateTime(2022, 8, 26)],
child: Container(
margin: const EdgeInsets.only(
top: 195,
),
child: Container(),
),
),
);
}
}