post dialogue
This commit is contained in:
parent
ee081de0ab
commit
e4a56146d5
3 changed files with 82 additions and 19 deletions
46
lib/dialogues/makepost.dart
Normal file
46
lib/dialogues/makepost.dart
Normal file
|
@ -0,0 +1,46 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
class MakePost extends StatelessWidget {
|
||||
const MakePost({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SimpleDialog(
|
||||
backgroundColor: Theme.of(context).colorScheme.background,
|
||||
elevation: 0,
|
||||
contentPadding: const EdgeInsets.all(24),
|
||||
insetPadding: const EdgeInsets.all(24),
|
||||
children: [
|
||||
TextFormField(
|
||||
autofocus: true,
|
||||
keyboardType: TextInputType.multiline,
|
||||
minLines: 4,
|
||||
maxLines: null,
|
||||
),
|
||||
const MakePostActionBar(),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class MakePostActionBar extends StatelessWidget {
|
||||
const MakePostActionBar({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Row(
|
||||
children: [
|
||||
IconButton(
|
||||
onPressed: () {
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
icon: Icon(Icons.cancel),
|
||||
),
|
||||
IconButton(
|
||||
onPressed: null,
|
||||
icon: Icon(Icons.save),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue