finished markdown editor and formatting on view note screen

This commit is contained in:
Kima
2024-04-22 19:55:48 +02:00
parent a35c608a4c
commit 38ee2d30f5
4 changed files with 179 additions and 5 deletions

View File

@@ -0,0 +1,38 @@
import 'package:flutter/material.dart';
class OutlinedRoundButton extends StatelessWidget {
final Widget child;
final double size;
final Function()? onTap;
final EdgeInsets padding;
const OutlinedRoundButton({
super.key,
required this.child,
this.size = 35.0,
this.onTap,
this.padding = const EdgeInsets.all(5.0),
});
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: onTap,
child: Container(
width: size,
height: size,
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.background,
border: Border.all(
color: Theme.of(context).colorScheme.secondary.withOpacity(0.1),
width: 1.1,
),
borderRadius: BorderRadius.circular(8.0),
),
alignment: Alignment.center,
padding: padding,
child: child,
),
);
}
}