feat: přidat projekt

This commit is contained in:
Matyáš Caras 2023-02-10 15:53:42 +01:00
commit 95b26b4063
42 changed files with 5261 additions and 0 deletions

View file

@ -0,0 +1,43 @@
import 'package:denikprogramatora/utils/vzhled.dart';
import 'package:flutter/material.dart';
import 'package:responsive_sizer/responsive_sizer.dart';
class MyContainer extends StatelessWidget {
const MyContainer(
{required this.child, this.width, this.height, this.padding, super.key});
final Widget child;
final double? width;
final double? height;
final double? padding;
@override
Widget build(BuildContext context) {
return Container(
margin: padding == null
? const EdgeInsets.only(left: 30, top: 15, right: 30, bottom: 15)
: EdgeInsets.all(padding!),
width: width ??
((Device.screenType == ScreenType.mobile)
? Adaptive.w(80)
: Adaptive.w(60)),
height: height,
decoration: const BoxDecoration(
color: Vzhled.dialogColor,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10),
topRight: Radius.circular(10),
bottomLeft: Radius.circular(10),
bottomRight: Radius.circular(10)),
// boxShadow: [
// BoxShadow(
// color: const Color.fromARGB(255, 74, 74, 74).withOpacity(0.25),
// spreadRadius: 3,
// blurRadius: 5,
// offset: const Offset(0, 3),
// ),
// ],
),
child: Padding(padding: const EdgeInsets.all(15), child: child),
);
}
}