fix some visuals problems
continuous-integration/drone/push Build is passing Details

#MSG01/ImplementationFirebaseMessaging
Lucas Delanier 2 years ago
parent b53f683da7
commit a029de17c9

@ -1,5 +1,6 @@
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="true" />
<JetCodeStyleSettings>
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</JetCodeStyleSettings>

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

@ -227,7 +227,7 @@ class CardProvider extends ChangeNotifier {
notifyListeners();
}
}
final messageTextField = TextEditingController();
void message(context) {
dev.log("message");
_angle = 0;
@ -249,7 +249,6 @@ class CardProvider extends ChangeNotifier {
}
Widget buildSheet(context) {
final messageTextField = TextEditingController();
return SingleChildScrollView(
padding:
EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),
@ -302,6 +301,7 @@ class CardProvider extends ChangeNotifier {
),
child: Padding(
padding: const EdgeInsets.all(20),
child: Form(
child: TextField(
keyboardAppearance: Brightness.dark,
controller: messageTextField,
@ -313,7 +313,6 @@ class CardProvider extends ChangeNotifier {
fontWeight: FontWeight.w200),
expands: true,
maxLines: null,
textInputAction: TextInputAction.send,
decoration: const InputDecoration(
hintStyle: TextStyle(
color: Colors.white,
@ -321,7 +320,9 @@ class CardProvider extends ChangeNotifier {
border: InputBorder.none,
hintText: "Mon message",
),
),
)
),
),
const SizedBox(
@ -629,3 +630,5 @@ Object notify(int index, context, {bool isError = true}) {
)));
}
}

@ -14,7 +14,6 @@ class ConversationPage extends StatefulWidget {
}
class _ConversationPageState extends State<ConversationPage> {
String destinataire = 'test';
List<Widget> messages = [];
bool isNull = true;
final String receiver;
@ -140,8 +139,9 @@ class _ConversationPageState extends State<ConversationPage> {
width: 40,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(40),
color: Colors.blue,
),
child: Image.asset('assets/images/DaflUser_profil.png'),
),
const SizedBox(
width: 20,
@ -194,7 +194,7 @@ class _ConversationPageState extends State<ConversationPage> {
itemBuilder: (context, index) =>
messageWidget(listMessage[index]),
reverse: false,
reverse: true,
controller: listScrollController,
);
} else {
@ -250,7 +250,7 @@ class _ConversationPageState extends State<ConversationPage> {
receiver);
if (listScrollController.hasClients) {
final position =
listScrollController.position.maxScrollExtent;
listScrollController.position.minScrollExtent;
listScrollController.jumpTo(position);
}
messageTextField.clear();
@ -285,9 +285,9 @@ class _ConversationPageState extends State<ConversationPage> {
),
);
}
final messageReportTextField = TextEditingController();
Widget buildSheet() {
final messageTextField = TextEditingController();
return SingleChildScrollView(
padding:
EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),
@ -374,7 +374,7 @@ class _ConversationPageState extends State<ConversationPage> {
borderRadius: BorderRadius.circular(15),
),
child: TextField(
controller: messageTextField,
controller: messageReportTextField,
keyboardAppearance: Brightness.dark,
style: TextStyle(
fontFamily: 'DMSans',
@ -405,9 +405,9 @@ class _ConversationPageState extends State<ConversationPage> {
onPressed: () {
MyApp.controller.sendEmail(
MyApp.controller.getIdDafl().toString(),
destinataire,
receiver,
currentValue,
messageTextField.text);
messageReportTextField.text);
Navigator.pop(context);
},
style: ElevatedButton.styleFrom(

@ -1,7 +1,7 @@
import 'dart:collection';
import 'package:dafl_project_flutter/main.dart';
import 'package:flutter/material.dart';
import 'package:scroll_loop_auto_scroll/scroll_loop_auto_scroll.dart';
import 'dart:developer' as dev;
import '../../../model/music.dart';
@ -120,12 +120,13 @@ class _DiscoveryListState extends State<DiscoveryList> {
}
refreshList() async {
await Future.delayed(const Duration(seconds: 1));
await Future.delayed(const Duration(seconds: 3));
setState(() {});
}
@override
Widget build(BuildContext context) {
double width = MediaQuery.of(context).size.width;
late LinkedHashMap<Music, DateTime> listDiscoveries;
if (MyApp.controller.getChoice()) {
//TODO : implement sort by date
@ -224,7 +225,38 @@ class _DiscoveryListState extends State<DiscoveryList> {
mainAxisAlignment:
MainAxisAlignment.center,
children: [
Text(
MyApp.controller
.getDiscoveries()
.keys
.toList()[reversedIndex]
.name
.length >
22
? SizedBox(
width: width * 0.60,
child: ScrollLoopAutoScroll(
delayAfterScrollInput:
Duration(seconds: 1),
delay: Duration(seconds: 1),
child: Text(
MyApp.controller
.getDiscoveries()
.keys
.toList()[reversedIndex]
.name,
style: TextStyle(
fontSize: 20,
color: Colors.white,
fontWeight:
FontWeight.bold),
),
duration:
Duration(seconds: 100),
scrollDirection:
Axis.horizontal,
),
)
: Text(
MyApp.controller
.getDiscoveries()
.keys
@ -232,10 +264,11 @@ class _DiscoveryListState extends State<DiscoveryList> {
.name,
style: TextStyle(
fontFamily: 'DMSans',
color:
Colors.white.withOpacity(1),
color: Colors.white
.withOpacity(1),
fontSize: 20,
fontWeight: FontWeight.w800),
fontWeight:
FontWeight.w800),
),
Text(
MyApp.controller

@ -67,7 +67,7 @@ class _MessagesWidgetState extends State<MessagesWidget> {
color: Colors.grey.withOpacity(0.4), fontSize: 15),
),
Padding(
padding: EdgeInsets.fromLTRB(0, height * 0.01, 0, 0),
padding: EdgeInsets.fromLTRB(0, height * 0.01, 0, height * 0.01),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
@ -155,8 +155,7 @@ class MessagesButtonWidget extends StatelessWidget {
width: 60,
decoration: BoxDecoration(
image: const DecorationImage(
image: NetworkImage(
'https://www.goutemesdisques.com/uploads/tx_gmdchron/pi1/L_Etrange_Histoire_de_Mr_Anderson.jpg'),
image: AssetImage('assets/images/DaflUser_profil.png'),
fit: BoxFit.cover,
),
border: Border.all(

@ -16,6 +16,8 @@ class SpotsWidget extends StatefulWidget {
}
class _SpotsWidgetState extends State<SpotsWidget> {
@override
Widget build(BuildContext context) {
double height = MediaQuery.of(context).size.height;

Loading…
Cancel
Save