-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
969d251
commit 32b38fd
Showing
6 changed files
with
139 additions
and
126 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,35 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:mastodon_api/mastodon_api.dart'; | ||
|
||
import '../widgets/post_creator.dart'; | ||
|
||
class ReplyButton extends StatelessWidget { | ||
final MastodonApi mastodon; | ||
final String statusId; | ||
|
||
ReplyButton({super.key, required this.mastodon, required this.statusId}); | ||
// | ||
// @override | ||
// Widget build(BuildContext context) { | ||
// // TODO: implement build | ||
// throw UnimplementedError(); | ||
// } | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
// TODO: implement build | ||
throw UnimplementedError(); | ||
return IconButton( | ||
icon: Icon(Icons.reply), | ||
onPressed: () { | ||
showModalBottomSheet( | ||
context: context, | ||
builder: (BuildContext context) { | ||
print(statusId); | ||
return ComposeStatusWidget( | ||
inReplyToId: statusId, | ||
); | ||
}, | ||
); | ||
}, | ||
); | ||
} | ||
|
||
// @override | ||
// Widget build(BuildContext context) { | ||
// return IconButton( | ||
// icon: Icon(Icons.reply), | ||
// onPressed: () { | ||
// showModalBottomSheet( | ||
// context: context, | ||
// builder: (BuildContext context) { | ||
// return null; | ||
// // return NewPostWidget( | ||
// // mastodon: mastodon, | ||
// // inReplyToId: statusId, | ||
// // ); | ||
// }, | ||
// ); | ||
// }, | ||
// ); | ||
// } | ||
} |
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