-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from achintya-7/feat/markdown-support
[feat] added basic markdown support
- Loading branch information
Showing
10 changed files
with
200 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:url_launcher/url_launcher_string.dart'; | ||
import 'package:velocity_x/velocity_x.dart'; | ||
|
||
class CustomDrawer extends StatelessWidget { | ||
const CustomDrawer({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Drawer( | ||
child: Container( | ||
color: Colors.grey.shade900, | ||
child: Column( | ||
children: [ | ||
80.heightBox, | ||
"Made By".text.white.xl3.semiBold.make().p(16), | ||
"Achintya".text.white.bold.xl4.make().shimmer(primaryColor: Vx.pink500, secondaryColor: Vx.blue500), | ||
20.heightBox, | ||
ElevatedButton( | ||
onPressed: () => launchUrlString("https://linktr.ee/achintya_only"), | ||
style: ElevatedButton.styleFrom( | ||
backgroundColor: Colors.greenAccent, | ||
padding: const EdgeInsets.symmetric(horizontal: 35, vertical: 10), | ||
textStyle: const TextStyle(fontSize: 18, fontWeight: FontWeight.bold, color: Colors.white70), | ||
), | ||
child: "Link Tree".text.white.make(), | ||
), | ||
IconButton( | ||
onPressed: () => launchUrlString("https://github.com/achintya-7/notesApp_flutter"), | ||
icon: Image.asset('assets/images/icons8-github-96.png'), | ||
iconSize: 80, | ||
) | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:flutter_markdown/flutter_markdown.dart'; | ||
|
||
class MarkDownRenderer extends StatelessWidget { | ||
const MarkDownRenderer({super.key, required this.data}); | ||
final String data; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Expanded( | ||
child: SingleChildScrollView( | ||
child: MarkdownBody( | ||
data: data, | ||
selectable: true, | ||
fitContent: false, | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.