This is flutter sqlite local notification project. User can add task.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
965 B

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/foundation/key.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:sqflite_pust_local_notification/utils/colors.dart';
class MyButton extends StatelessWidget {
final String label;
final Function()? onTap;
const MyButton({Key? key, required this.label, required this.onTap})
: super(key: key);
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: onTap,
child: Container(
alignment: Alignment.center,
width: 120,
height: 50,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(20), color: primaryClr),
child: Text(
label,
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white, fontSize: 15, fontWeight: FontWeight.bold),
),
),
);
}
}