feat: Add Voicemail feature with playback functionality #32
@ -7,6 +7,7 @@ import 'package:dialer/features/composition/composition.dart';
|
|||||||
import 'package:flutter_contacts/flutter_contacts.dart';
|
import 'package:flutter_contacts/flutter_contacts.dart';
|
||||||
import 'package:dialer/features/settings/settings.dart';
|
import 'package:dialer/features/settings/settings.dart';
|
||||||
import '../../services/contact_service.dart';
|
import '../../services/contact_service.dart';
|
||||||
|
import 'package:dialer/features/voicemail/voicemail_page.dart';
|
||||||
|
|
||||||
const bool _privacyMode = bool.fromEnvironment('privacy-mode', defaultValue: false);
|
const bool _privacyMode = bool.fromEnvironment('privacy-mode', defaultValue: false);
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:audioplayers/audioplayers.dart';
|
import 'package:audioplayers/audioplayers.dart';
|
||||||
// ...existing code...
|
|
||||||
|
|
||||||
class VoicemailPage extends StatefulWidget {
|
class VoicemailPage extends StatefulWidget {
|
||||||
const VoicemailPage({Key? key}) : super(key: key);
|
const VoicemailPage({Key? key}) : super(key: key);
|
||||||
@ -80,8 +79,15 @@ class _VoicemailPageState extends State<VoicemailPage> {
|
|||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
const CircleAvatar(
|
const CircleAvatar(
|
||||||
backgroundImage: AssetImage(
|
radius: 28,
|
||||||
'assets/default_contact_picture.png'),
|
backgroundColor: Colors.amber,
|
||||||
|
child: Text(
|
||||||
|
"JD",
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.deepOrange,
|
||||||
|
fontSize: 28,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 12),
|
const SizedBox(width: 12),
|
||||||
Column(
|
Column(
|
||||||
@ -168,8 +174,15 @@ class _VoicemailPageState extends State<VoicemailPage> {
|
|||||||
: Row(
|
: Row(
|
||||||
children: [
|
children: [
|
||||||
const CircleAvatar(
|
const CircleAvatar(
|
||||||
backgroundImage:
|
radius: 28,
|
||||||
AssetImage('assets/default_contact_picture.png'),
|
backgroundColor: Colors.amber,
|
||||||
|
child: Text(
|
||||||
|
"JD",
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.deepOrange,
|
||||||
|
fontSize: 28,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 12),
|
const SizedBox(width: 12),
|
||||||
Column(
|
Column(
|
||||||
|
Loading…
Reference in New Issue
Block a user