Add post toolbar

This commit is contained in:
2024-03-24 16:07:29 +08:00
parent 527655458f
commit f6429115a4
9 changed files with 161 additions and 4 deletions

View File

@ -2,6 +2,7 @@ import 'dart:convert';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:solaragent/auth.dart';
import 'package:solaragent/router.dart';
@ -15,6 +16,7 @@ class MomentEditorScreen extends StatefulWidget {
}
class _MomentEditorScreenState extends State<MomentEditorScreen> {
final picker = ImagePicker();
final contentController = TextEditingController();
bool isSubmitting = false;
@ -100,6 +102,23 @@ class _MomentEditorScreenState extends State<MomentEditorScreen> {
),
),
),
// Toolbar
Container(
decoration: const BoxDecoration(
border: Border(
top: BorderSide(width: 0.3, color: Color(0xffdedede)),
),
),
child: Row(
children: [
TextButton(
onPressed: null,
style: TextButton.styleFrom(shape: const CircleBorder()),
child: const Icon(Icons.camera_alt),
)
],
),
),
// Recommend website banner
showRecommendationBanner
? FutureBuilder(