✨ Add post toolbar
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user