mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Continue to fix deprecation warnings
This commit is contained in:
@ -25,6 +25,7 @@ import 'package:comunic/utils/navigation_utils.dart';
|
||||
import 'package:comunic/utils/post_utils.dart';
|
||||
import 'package:comunic/utils/ui_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/rendering.dart';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
@ -264,9 +265,9 @@ class _PostTileState extends State<PostTile> {
|
||||
}
|
||||
|
||||
Widget _buildPostYouTube() {
|
||||
return RaisedButton(
|
||||
color: Colors.red,
|
||||
textColor: Colors.white,
|
||||
return ElevatedButton(
|
||||
style:
|
||||
ButtonStyle(backgroundColor: MaterialStateProperty.all(Colors.red)),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: <Widget>[
|
||||
@ -321,7 +322,7 @@ class _PostTileState extends State<PostTile> {
|
||||
}
|
||||
|
||||
Widget _buildPostPDF() {
|
||||
return RaisedButton.icon(
|
||||
return ElevatedButton.icon(
|
||||
onPressed: () {
|
||||
launch(widget.post.fileURL);
|
||||
},
|
||||
@ -442,8 +443,7 @@ class _PostTileState extends State<PostTile> {
|
||||
// Image button
|
||||
Container(
|
||||
width: 30,
|
||||
child: FlatButton(
|
||||
padding: EdgeInsets.only(),
|
||||
child: TextButton(
|
||||
onPressed: _pickImageForComment,
|
||||
child: Icon(
|
||||
Icons.image,
|
||||
@ -455,8 +455,7 @@ class _PostTileState extends State<PostTile> {
|
||||
// Submit button
|
||||
Container(
|
||||
width: 40,
|
||||
child: FlatButton(
|
||||
padding: EdgeInsets.only(),
|
||||
child: TextButton(
|
||||
onPressed: _canSubmitComment ? () => _submitComment() : null,
|
||||
child: Icon(
|
||||
Icons.send,
|
||||
|
Reference in New Issue
Block a user