loris/lib/dialogues/makepost.dart

44 lines
1.0 KiB
Dart
Raw Normal View History

2022-07-03 14:56:41 +00:00
import 'package:flutter/material.dart';
import '../business_logic/posting/posting.dart' as logic;
2022-07-03 14:56:41 +00:00
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();
},
2022-07-04 17:37:53 +00:00
icon: const Icon(Icons.cancel),
2022-07-03 14:56:41 +00:00
),
],
);
}
}