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.

53 lines
1.4 KiB

  1. import 'package:flutter/cupertino.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:flutter/src/foundation/key.dart';
  4. import 'package:flutter/src/widgets/framework.dart';
  5. import 'package:get/get.dart';
  6. import '../utils/textStyles.dart';
  7. class NotifiedScreen extends StatelessWidget {
  8. final String? lable;
  9. const NotifiedScreen({Key? key, required this.lable}) : super(key: key);
  10. @override
  11. Widget build(BuildContext context) {
  12. var title = lable.toString().split("|")[0];
  13. var note = lable.toString().split("|")[1];
  14. return Scaffold(
  15. appBar: _appBar(context, title),
  16. body: Center(
  17. child: Container(
  18. height: 400,
  19. width: 300,
  20. decoration: BoxDecoration(
  21. borderRadius: BorderRadius.circular(20),
  22. color: Get.isDarkMode ? Colors.white : Colors.grey[600]),
  23. child: Center(
  24. child: Text(
  25. note,
  26. style: bodyTextStyle,
  27. ),
  28. ),
  29. )),
  30. );
  31. }
  32. _appBar(BuildContext context, String title) {
  33. return AppBar(
  34. elevation: 0,
  35. title: Text(
  36. title,
  37. style: toolbarTextStyle,
  38. ),
  39. backgroundColor: context.theme.backgroundColor,
  40. leading: GestureDetector(
  41. onTap: () {
  42. Get.back();
  43. },
  44. child: Icon(Icons.arrow_back_ios,
  45. size: 20, color: Get.isDarkMode ? Colors.white : Colors.black),
  46. ),
  47. );
  48. }
  49. }