Resolve all lints and deprecation warnings

This commit is contained in:
2026-01-09 10:04:51 -06:00
parent 512577b092
commit a799e9cf59
56 changed files with 2819 additions and 3159 deletions

View File

@@ -1,3 +1,5 @@
library learn_content;
/// Learn article content for the Husband section
/// Contains educational articles about understanding her cycle, biblical manhood, and NFP
@@ -28,7 +30,7 @@ class LearnSection {
class LearnContent {
static const List<LearnArticle> articles = [
// ========== UNDERSTANDING HER ==========
LearnArticle(
id: 'four_phases',
title: 'The 4 Phases of Her Cycle',
@@ -36,13 +38,15 @@ class LearnContent {
category: 'Understanding Her',
sections: [
LearnSection(
content: 'Your wife\'s body goes through four distinct phases each month, '
content:
'Your wife\'s body goes through four distinct phases each month, '
'each bringing different physical and emotional experiences. Understanding '
'these phases helps you be a more attentive and supportive husband.',
),
LearnSection(
heading: '1. Menstrual Phase (Days 1-5)',
content: 'This is when her period occurs. The uterine lining sheds, which can '
content:
'This is when her period occurs. The uterine lining sheds, which can '
'cause cramping, fatigue, and lower energy. Many women experience headaches, '
'bloating, and mood sensitivity during this time.\n\n'
'💡 How you can help: Offer comfort items, help with household tasks, '
@@ -50,7 +54,8 @@ class LearnContent {
),
LearnSection(
heading: 'Dysmenorrhea (Painful Periods)',
content: 'While some cramping is normal, severe menstrual pain is called '
content:
'While some cramping is normal, severe menstrual pain is called '
'Dysmenorrhea. It affects many women and can be truly debilitating.\n\n'
'**Primary Dysmenorrhea**: Common menstrual cramps caused by '
'prostaglandins (chemicals that make the uterus contract). Pain '
@@ -64,16 +69,17 @@ class LearnContent {
),
LearnSection(
heading: '2. Follicular Phase (Days 6-12)',
content: 'After her period ends, estrogen begins rising. This typically brings '
content:
'After her period ends, estrogen begins rising. This typically brings '
'increased energy, better mood, and higher confidence. She may feel more '
'social and creative during this time.\n\n'
'💡 How you can help: This is a great time for date nights, important '
'conversations, and planning activities together.',
),
LearnSection(
heading: '3. Ovulation Phase (Days 13-15)',
content: 'This is peak fertility. Estrogen peaks and her body releases an egg. '
content:
'This is peak fertility. Estrogen peaks and her body releases an egg. '
'Many women feel their best during this phase—higher energy, increased '
'confidence, and feeling more attractive.\n\n'
'💡 How you can help: Appreciate and affirm her. This is when she may feel '
@@ -81,7 +87,8 @@ class LearnContent {
),
LearnSection(
heading: '4. Luteal Phase (Days 16-28)',
content: 'Progesterone rises after ovulation. If pregnancy doesn\'t occur, '
content:
'Progesterone rises after ovulation. If pregnancy doesn\'t occur, '
'hormone levels drop, leading to PMS symptoms like mood swings, irritability, '
'fatigue, cravings, and bloating.\n\n'
'💡 How you can help: Extra patience and understanding. Her feelings are real, '
@@ -89,7 +96,8 @@ class LearnContent {
),
LearnSection(
heading: 'Remember',
content: '"Husbands, love your wives, just as Christ loved the church and gave '
content:
'"Husbands, love your wives, just as Christ loved the church and gave '
'himself up for her." — Ephesians 5:25\n\n'
'Understanding her cycle is one practical way to live out sacrificial love.',
),
@@ -103,13 +111,15 @@ class LearnContent {
category: 'Understanding Her',
sections: [
LearnSection(
content: 'If you\'ve ever wondered why your wife seems like a different person '
content:
'If you\'ve ever wondered why your wife seems like a different person '
'at different times of the month, the answer lies in hormones. These powerful '
'chemical messengers directly affect her brain, emotions, and body.',
),
LearnSection(
heading: 'The Key Hormones',
content: '**Estrogen** — The "feel good" hormone. When it\'s high, she typically '
content:
'**Estrogen** — The "feel good" hormone. When it\'s high, she typically '
'feels more energetic, positive, and socially engaged. When it drops suddenly '
'(before her period), it can cause mood dips.\n\n'
'**Progesterone** — The "calming" hormone. It rises after ovulation and can cause '
@@ -120,7 +130,8 @@ class LearnContent {
),
LearnSection(
heading: 'It\'s Not "In Her Head"',
content: 'Studies show that hormonal fluctuations create real changes in brain chemistry. '
content:
'Studies show that hormonal fluctuations create real changes in brain chemistry. '
'The limbic system (emotional center) is highly sensitive to hormone levels. When '
'her hormones shift, her emotional responses genuinely change—this isn\'t weakness '
'or drama, it\'s biology.',
@@ -135,7 +146,8 @@ class LearnContent {
),
LearnSection(
heading: 'Scripture to Remember',
content: '"Live with your wives in an understanding way, showing honor to the woman '
content:
'"Live with your wives in an understanding way, showing honor to the woman '
'as the weaker vessel, since they are heirs with you of the grace of life, so '
'that your prayers may not be hindered." — 1 Peter 3:7',
),
@@ -149,7 +161,8 @@ class LearnContent {
category: 'Understanding Her',
sections: [
LearnSection(
content: 'Premenstrual Syndrome (PMS) affects up to 90% of women to some degree. '
content:
'Premenstrual Syndrome (PMS) affects up to 90% of women to some degree. '
'For 20-40% of women, symptoms significantly impact daily life. This is not '
'exaggeration or seeking attention—it\'s a medically recognized condition.',
),
@@ -176,7 +189,8 @@ class LearnContent {
),
LearnSection(
heading: 'PMDD: When It\'s Severe',
content: 'About 3-8% of women experience Premenstrual Dysphoric Disorder (PMDD), '
content:
'About 3-8% of women experience Premenstrual Dysphoric Disorder (PMDD), '
'a severe form of PMS. Symptoms can include depression, hopelessness, severe '
'anxiety, and difficulty functioning. If your wife experiences severe symptoms, '
'encourage her to talk to a doctor—treatment is available.',
@@ -193,7 +207,8 @@ class LearnContent {
),
LearnSection(
heading: 'A Husband\'s Prayer',
content: '"Lord, help me to be patient and understanding when my wife is struggling. '
content:
'"Lord, help me to be patient and understanding when my wife is struggling. '
'Give me eyes to see her needs and a heart willing to serve. Help me reflect '
'Your love to her, especially when it\'s hard. Amen."',
),
@@ -209,14 +224,16 @@ class LearnContent {
category: 'Biblical Manhood',
sections: [
LearnSection(
content: '"Husbands, love your wives, as Christ loved the church and gave himself '
content:
'"Husbands, love your wives, as Christ loved the church and gave himself '
'up for her." — Ephesians 5:25\n\n'
'This is the highest calling for a husband. But what does it actually look like '
'in everyday life, especially related to her cycle?',
),
LearnSection(
heading: 'Christ\'s Love is Sacrificial',
content: 'Jesus gave up His comfort, His preferences, and ultimately His life. '
content:
'Jesus gave up His comfort, His preferences, and ultimately His life. '
'For you, this means:\n\n'
'• Helping with housework when she\'s exhausted from cramps\n'
'• Keeping your frustration in check when she\'s emotional\n'
@@ -225,7 +242,8 @@ class LearnContent {
),
LearnSection(
heading: 'Christ\'s Love is Patient',
content: 'Jesus was patient with His disciples\' failures and slow understanding. '
content:
'Jesus was patient with His disciples\' failures and slow understanding. '
'For you, this means:\n\n'
'• Not rushing her to "get over" how she\'s feeling\n'
'• Listening without immediately trying to fix things\n'
@@ -234,7 +252,8 @@ class LearnContent {
),
LearnSection(
heading: 'Christ\'s Love is Nourishing',
content: '"He nourishes and cherishes her" (Ephesians 5:29). For you, this means:\n\n'
content:
'"He nourishes and cherishes her" (Ephesians 5:29). For you, this means:\n\n'
'• Speaking words of encouragement and affirmation\n'
'• Providing for her physical comfort\n'
'• Protecting her from unnecessary stress\n'
@@ -242,7 +261,8 @@ class LearnContent {
),
LearnSection(
heading: 'Christ\'s Love is Understanding',
content: 'Jesus knows our weaknesses because He experienced human flesh. '
content:
'Jesus knows our weaknesses because He experienced human flesh. '
'For you, this means:\n\n'
'• Learning about her cycle and what she experiences\n'
'• Remembering what helps her and what doesn\'t\n'
@@ -251,7 +271,8 @@ class LearnContent {
),
LearnSection(
heading: 'Daily Application',
content: 'Each morning, ask yourself: "How can I love her like Christ today?"\n\n'
content:
'Each morning, ask yourself: "How can I love her like Christ today?"\n\n'
'Each evening, reflect: "Did I sacrifice my preferences for her good today?"',
),
],
@@ -264,13 +285,15 @@ class LearnContent {
category: 'Biblical Manhood',
sections: [
LearnSection(
content: '"For even the Son of Man came not to be served but to serve, and to give '
content:
'"For even the Son of Man came not to be served but to serve, and to give '
'his life as a ransom for many." — Mark 10:45\n\n'
'Biblical leadership isn\'t about authority and control—it\'s about service and sacrifice.',
),
LearnSection(
heading: 'Leadership = Responsibility, Not Power',
content: 'Being the head of your home means you are responsible for:\n\n'
content:
'Being the head of your home means you are responsible for:\n\n'
'• Your wife\'s spiritual well-being\n'
'• The emotional atmosphere of your home\n'
'• Initiating prayer and spiritual conversations\n'
@@ -279,7 +302,8 @@ class LearnContent {
),
LearnSection(
heading: 'A Servant Leader Listens',
content: 'Great leaders listen more than they speak. When your wife is struggling:\n\n'
content:
'Great leaders listen more than they speak. When your wife is struggling:\n\n'
'• Put down your phone and give full attention\n'
'• Ask questions to understand, not to fix\n'
'• Validate her feelings before offering solutions\n'
@@ -295,7 +319,8 @@ class LearnContent {
),
LearnSection(
heading: 'A Servant Leader Gets His Hands Dirty',
content: 'Jesus washed feet—the work of the lowest servant. For you, this means:\n\n'
content:
'Jesus washed feet—the work of the lowest servant. For you, this means:\n\n'
'• Doing dishes, laundry, and cleaning without being asked\n'
'• Getting up with sick children at night\n'
'• Taking on tasks she normally does when she\'s unwell\n'
@@ -319,7 +344,8 @@ class LearnContent {
category: 'Biblical Manhood',
sections: [
LearnSection(
content: 'Prayer is the most powerful thing you can do for your wife. It changes '
content:
'Prayer is the most powerful thing you can do for your wife. It changes '
'her, changes you, and invites God\'s presence into your marriage.',
),
LearnSection(
@@ -375,13 +401,15 @@ class LearnContent {
category: 'NFP for Husbands',
sections: [
LearnSection(
content: 'Natural Family Planning (NFP) isn\'t just your wife\'s responsibility—it\'s '
content:
'Natural Family Planning (NFP) isn\'t just your wife\'s responsibility—it\'s '
'a shared journey. Learning to understand her fertility signs brings you closer '
'together and honors the gift of her body.',
),
LearnSection(
heading: 'The Main Fertility Signs',
content: '**Cervical Mucus**: As ovulation approaches, mucus changes from dry to '
content:
'**Cervical Mucus**: As ovulation approaches, mucus changes from dry to '
'wet, slippery, and stretchy (like egg whites). This indicates peak fertility.\n\n'
'**Basal Body Temperature**: Temperature rises 0.5-1°F after ovulation and stays '
'elevated until the next period. A sustained rise confirms ovulation occurred.\n\n'
@@ -416,7 +444,8 @@ class LearnContent {
),
LearnSection(
heading: 'Scripture',
content: '"Two are better than one, because they have a good reward for their toil. '
content:
'"Two are better than one, because they have a good reward for their toil. '
'For if they fall, one will lift up his fellow." — Ecclesiastes 4:9-10',
),
],
@@ -429,13 +458,15 @@ class LearnContent {
category: 'NFP for Husbands',
sections: [
LearnSection(
content: 'For couples practicing NFP to avoid pregnancy, abstaining during the '
content:
'For couples practicing NFP to avoid pregnancy, abstaining during the '
'fertile window can be challenging. But this sacrifice can become a profound '
'spiritual discipline that strengthens your marriage.',
),
LearnSection(
heading: 'The Challenge is Real',
content: 'Let\'s be honest: abstinence during fertile days is difficult.\n\n'
content:
'Let\'s be honest: abstinence during fertile days is difficult.\n\n'
'• Her desire may peak during ovulation (biology is ironic that way)\n'
'• It requires self-control and communication\n'
'• It can feel like a sacrifice without immediate reward\n\n'
@@ -443,7 +474,8 @@ class LearnContent {
),
LearnSection(
heading: 'Reframing Abstinence',
content: 'Instead of seeing fertile days as deprivation, see them as:\n\n'
content:
'Instead of seeing fertile days as deprivation, see them as:\n\n'
'• **An opportunity for self-control**: "Like a city whose walls are broken through '
'is a person who lacks self-control." (Proverbs 25:28)\n\n'
'• **A chance to serve your wife**: Respecting her body and your shared decision\n\n'
@@ -452,7 +484,8 @@ class LearnContent {
),
LearnSection(
heading: 'Ways to Stay Connected',
content: 'During fertile days, intentionally build closeness through:\n\n'
content:
'During fertile days, intentionally build closeness through:\n\n'
'• Quality conversation (deeper than logistics)\n'
'• Physical affection without intercourse\n'
'• Date nights focused on connection\n'
@@ -471,7 +504,8 @@ class LearnContent {
),
LearnSection(
heading: 'A Prayer for Difficult Days',
content: '"Lord, this is hard. Help me to love her well even when I\'m frustrated. '
content:
'"Lord, this is hard. Help me to love her well even when I\'m frustrated. '
'Give me self-control and help me see this sacrifice as an offering to You. '
'Deepen our connection in other ways during this time. Amen."',
),
@@ -486,34 +520,39 @@ class LearnContent {
category: 'Understanding My Cycle',
sections: [
LearnSection(
content: 'Your menstrual cycle is more than just your period. It\'s a continuous '
content:
'Your menstrual cycle is more than just your period. It\'s a continuous '
'rhythm of hormones that affects your energy, mood, and body. Understanding '
'these four phases empowers you to work with your body, rather than against it.',
),
LearnSection(
heading: '1. Menstrual Phase (Days 1-5)',
content: 'The start of your cycle. Progesterone plunges, causing the uterine lining '
content:
'The start of your cycle. Progesterone plunges, causing the uterine lining '
'to shed. Energy typically dips.\n\n'
'💡 Tips: Prioritize rest. Warm foods and gentle movement (like walking or stretching) '
'can help with cramping. Don\'t push yourself to be highly productive if you don\'t feel up to it.',
),
LearnSection(
heading: '2. Follicular Phase (Days 6-12)',
content: 'Estrogen rises as your body prepares an egg. You likely feel a boost in energy, '
content:
'Estrogen rises as your body prepares an egg. You likely feel a boost in energy, '
'creativity, and social desire. Your skin may clear up and you feel more optimistic.\n\n'
'💡 Tips: This is a great time to start new projects, exercise harder, and schedule '
'social gatherings.',
),
LearnSection(
heading: '3. Ovulation Phase (Days 13-15)',
content: 'Peak fertility. Estrogen is high, and you may feel your most confident and vibrant. '
content:
'Peak fertility. Estrogen is high, and you may feel your most confident and vibrant. '
'Libido often increases. You are magnetic!\n\n'
'💡 Tips: Schedule date nights or important conversations. You are likely more '
'articulate and persuasive now.',
),
LearnSection(
heading: '4. Luteal Phase (Days 16-28)',
content: 'Progesterone acts as a "braking" hormone. Energy winds down. You may turn inward '
content:
'Progesterone acts as a "braking" hormone. Energy winds down. You may turn inward '
'and feel more reflective. PMS symptoms may appear near the end.\n\n'
'💡 Tips: Be gentle with yourself. Focus on completing tasks rather than starting new ones. '
'Organize your space and prepare for the rest phase coming next.',
@@ -528,23 +567,27 @@ class LearnContent {
category: 'Understanding My Cycle',
sections: [
LearnSection(
content: 'It is not "all in your head." Hormones like estrogen and progesterone '
content:
'It is not "all in your head." Hormones like estrogen and progesterone '
'directly impact brain chemistry and neurotransmitters like serotonin. '
'Fluctuating emotions are a biological reality.',
),
LearnSection(
heading: 'Estrogen: The Uplifter',
content: 'When estrogen is high (Follicular/Ovulation), it boosts serotonin and dopamine. '
content:
'When estrogen is high (Follicular/Ovulation), it boosts serotonin and dopamine. '
'You feel resilient, happy, and outgoing.',
),
LearnSection(
heading: 'Progesterone: The Sedative',
content: 'Rising in the Luteal phase, progesterone has a calming effect but can also '
content:
'Rising in the Luteal phase, progesterone has a calming effect but can also '
'lead to feelings of sadness or sluggishness if levels aren\'t balanced.',
),
LearnSection(
heading: 'The Drop',
content: 'Just before your period, both hormones drop. This withdrawal can cause '
content:
'Just before your period, both hormones drop. This withdrawal can cause '
'irritability, anxiety, and tearfulness (PMS). It is temporary!\n\n'
'Scripture: "I praise you, for I am fearfully and wonderfully made." — Psalm 139:14',
),
@@ -558,12 +601,14 @@ class LearnContent {
category: 'Disease Prevention',
sections: [
LearnSection(
content: 'Maintaining reproductive health involves regular hygiene and awareness '
content:
'Maintaining reproductive health involves regular hygiene and awareness '
'of your body\'s natural defenses.',
),
LearnSection(
heading: 'Hygiene Basics',
content: '• **Wiping**: Always wipe from front to back to prevent bacteria from '
content:
'• **Wiping**: Always wipe from front to back to prevent bacteria from '
'entering the urethra or vagina.\n'
'• **Cleaning**: Use warm water. Avoid harsh soaps, douches, or scented products '
'internally, as they disrupt the natural pH balance and can lead to yeast infections or BV.\n'
@@ -571,14 +616,16 @@ class LearnContent {
),
LearnSection(
heading: 'UTI Prevention',
content: 'Urinary Tract Infections (UTIs) are common but preventable:\n'
content:
'Urinary Tract Infections (UTIs) are common but preventable:\n'
'• Hydrate well to flush out bacteria.\n'
'• Urinate after intercourse to clear the urethra.\n'
'• Don\'t hold urine for long periods.',
),
LearnSection(
heading: 'STI Prevention',
content: 'Sexually Transmitted Infections can affect anyone. If you or your partner '
content:
'Sexually Transmitted Infections can affect anyone. If you or your partner '
'have a history of STIs, open communication and testing are crucial.\n\n'
'Monogamy within marriage provides the safest environment for sexual health.',
),
@@ -592,23 +639,27 @@ class LearnContent {
category: 'Disease Prevention',
sections: [
LearnSection(
content: 'Regular medical check-ups are vital for catching issues early when they '
content:
'Regular medical check-ups are vital for catching issues early when they '
'are most treatable.',
),
LearnSection(
heading: 'Pap Smears & HPV Testing',
content: '• **What**: Checks for cervical cancer and HPV (the virus that causes it).\n'
content:
'• **What**: Checks for cervical cancer and HPV (the virus that causes it).\n'
'• **When**: Typically every 3-5 years for women aged 21-65, depending on your doctor\'s advice.',
),
LearnSection(
heading: 'Breast Self-Exams',
content: '• **What**: Feeling for lumps or changes in breast tissue.\n'
content:
'• **What**: Feeling for lumps or changes in breast tissue.\n'
'• **When**: Once a month, ideally a few days after your period ends when '
'breasts are least tender.',
),
LearnSection(
heading: 'Annual Well-Woman Exam',
content: 'Even if you don\'t need a Pap smear locally, an annual visit allows you to discuss '
content:
'Even if you don\'t need a Pap smear locally, an annual visit allows you to discuss '
'period pain, fertility, contraception, and overall wellness with your provider.',
),
],
@@ -621,7 +672,8 @@ class LearnContent {
category: 'Partnership',
sections: [
LearnSection(
content: 'Your husband likely wants to support you but may not know how. '
content:
'Your husband likely wants to support you but may not know how. '
'Clear communication bridges that gap.',
),
LearnSection(
@@ -632,31 +684,35 @@ class LearnContent {
),
LearnSection(
heading: 'Share Your Cycle',
content: ' Invite him into the process. Let him know when your period starts '
content:
' Invite him into the process. Let him know when your period starts '
'or when you are ovulating. This helps him understand your changing needs '
'and moods.',
),
],
),
LearnArticle(
LearnArticle(
id: 'wife_shared_responsibility',
title: 'Shared Responsibility',
subtitle: 'Navigating fertility together',
category: 'Partnership',
sections: [
LearnSection(
content: 'Fertility is a shared reality, not just "the woman\'s job." '
content:
'Fertility is a shared reality, not just "the woman\'s job." '
'Whether trying to conceive or avoiding pregnancy, walk this path together.',
),
LearnSection(
heading: 'NFP / FAM',
content: 'If practicing Natural Family Planning, involve him in chart reading. '
'Discuss the fertile window together. It builds intimacy and trust.',
heading: 'NFP / FAM',
content:
'If practicing Natural Family Planning, involve him in chart reading. '
'Discuss the fertile window together. It builds intimacy and trust.',
),
LearnSection(
heading: 'Mutual Care',
content: 'Scripture calls husbands to love their wives as their own bodies. '
content:
'Scripture calls husbands to love their wives as their own bodies. '
'Allow him to care for you, and seek to understand his perspective as well.',
),
],