Flutter Help

Apologies for the confusion. To add the AnimatedSize effect to the Protanopia button, you can modify the onPressed function of the OutlinedButton as follows:

Code:
onPressed: () {
  setState(() {
    isExpanded = !isExpanded;
  });
},

Here's the updated code with the AnimatedSize effect:

Code:
SingleChildScrollView(
  child: Column(
    children: [
      GestureDetector(
        onTap: () {
          setState(() {
            isExpanded = !isExpanded;
          });
        },
        child: AnimatedSize(
          duration: const Duration(milliseconds: 200),
          curve: Curves.easeInOut,
          child: OutlinedButton(
            onPressed: () {
              setState(() {
                isExpanded = !isExpanded;
              });
            },
            style: OutlinedButton.styleFrom(
              side: BorderSide(color: Colors.deepPurple),
              backgroundColor: _isButtonClicked ? Colors.deepPurple : Colors.transparent,
            ),
            child: Text('Protanopia'),
          ),
        ),
      ),
      SizedBox(height: 10),
      AnimatedSize(
        duration: const Duration(milliseconds: 200),
        curve: Curves.easeInOut,
        child: Container(
          height: isExpanded
              ? MediaQuery.of(context).size.height * 0.7
              : MediaQuery.of(context).size.height * 0.3,
          width: MediaQuery.of(context).size.width,
          decoration: BoxDecoration(
            borderRadius: BorderRadius.circular(20),
            color: Colors.deepPurple,
          ),
          child: isExpanded
              ? ClipRRect(
                  borderRadius: BorderRadius.circular(20),
                  child: CameraPreview(_cameraController!),
                )
              : const Center(
                  child: Column(
                    mainAxisAlignment: MainAxisAlignment.center,
                    children: [
                      Icon(
                        Icons.camera,
                        color: Colors.white,
                        size: 48,
                      ),
                      SizedBox(height: 10),
                      Text(
                        'CAMERA',
                        style: TextStyle(
                          color: Colors.white,
                          fontSize: 22,
                        ),
                      )
                    ],
                  ),
                ),
        ),
      ),
    ],
  ),
)

In this updated code, the Protanopia button is wrapped with the AnimatedSize widget. The onPressed function of the button is also modified to toggle the isExpanded flag. As a result, pressing the button will trigger the AnimatedSize effect and expand or collapse the container with a smooth animation.
okay na. thanks
 
You're welcome! I'm glad I could help. If you have any more questions, feel free to ask. Happy coding!
next na gusto ko, kapag pinindot ko ang Protanopia button, magkakashade sya na kulay deeppurple at hindi maalis yun hanggat hindi ako pumipindot sa iba
 
next na gusto ko, kapag pinindot ko ang Protanopia button, magkakashade sya na kulay deeppurple at hindi maalis yun hanggat hindi ako pumipindot sa iba
To achieve the shading effect on the Protanopia button, you can update the onPressed function of the OutlinedButton as follows:

Code:
onPressed: () {
  setState(() {
    isButtonClicked = true;
  });
},

And in the style property of the OutlinedButton, you can update the backgroundColor property based on the value of isButtonClicked:

Code:
style: OutlinedButton.styleFrom(
  side: BorderSide(color: Colors.deepPurple),
  backgroundColor: isButtonClicked ? Colors.deepPurple : Colors.transparent,
),

Here's the updated code:

Code:
OutlinedButton(
  onPressed: () {
    setState(() {
      isButtonClicked = true;
    });
  },
  style: OutlinedButton.styleFrom(
    side: BorderSide(color: Colors.deepPurple),
    backgroundColor: isButtonClicked ? Colors.deepPurple : Colors.transparent,
  ),
  child: Text('Protanopia'),
),

With this code, when the Protanopia button is pressed, the isButtonClicked flag is set to true, which updates the background color of the button to Colors.deepPurple. The shading effect will remain until you press another button or trigger any other action to reset the isButtonClicked flag.

Note: Make sure to initialize the isButtonClicked variable as false in the widget's state.
 
paki ayos naman ang code nato, gusto ko ang flash button nasa left banda, yung capture button naman nasa center. paki lagyan din ng size yung capture button
if (isExpanded)
Positioned(
bottom: 16,
right: 16,
left: 16,
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
FloatingActionButton(
onPressed: () {
// Toggle flashlight
if (_cameraController != null &&
_cameraController!.value.isInitialized) {
if (_cameraController!.value.flashMode == FlashMode.off) {
_cameraController!.setFlashMode(FlashMode.torch);
setState(() {
isFlashlightOn = true;
});
} else {
_cameraController!.setFlashMode(FlashMode.off);
setState(() {
isFlashlightOn = false;
});
}
}
},
child: Icon(
isFlashlightOn ? Icons.flash_off : Icons.flash_on,
),
),
FloatingActionButton(
onPressed: () async {
// Capture image
if (_cameraController != null &&
_cameraController!.value.isInitialized) {
try {
final XFile imageFile =
await _cameraController!.takePicture();
// Do something with the image file
} catch (e) {
print('Error capturing image: $e');
}
}
},
child: Icon(Icons.camera_alt),
),
],
),
),
],
),
),
),
 
Sure, here's the modified code with the flash button on the left and the capture button in the center, along with the added size for the capture button:

Code:
if (isExpanded)
  Positioned(
    bottom: 16,
    right: 16,
    left: 16,
    child: Row(
      mainAxisAlignment: MainAxisAlignment.spaceBetween, // Added this
      children: [
        FloatingActionButton(
          onPressed: () {
            // Toggle flashlight
            if (_cameraController != null &&
                _cameraController!.value.isInitialized) {
              if (_cameraController!.value.flashMode == FlashMode.off) {
                _cameraController!.setFlashMode(FlashMode.torch);
                setState(() {
                  isFlashlightOn = true;
                });
              } else {
                _cameraController!.setFlashMode(FlashMode.off);
                setState(() {
                  isFlashlightOn = false;
                });
              }
            }
          },
          child: Icon(
            isFlashlightOn ? Icons.flash_off : Icons.flash_on,
          ),
          mini: true, // Added this
        ),
        FloatingActionButton(
          onPressed: () async {
            // Capture image
            if (_cameraController != null &&
                _cameraController!.value.isInitialized) {
              try {
                final XFile imageFile =
                    await _cameraController!.takePicture();
                // Do something with the image file
              } catch (e) {
                print('Error capturing image: $e');
              }
            }
          },
          child: Icon(Icons.camera_alt),
          backgroundColor: Colors.blue, // Added this
          foregroundColor: Colors.white, // Added this
          shape: RoundedRectangleBorder(
            borderRadius: BorderRadius.circular(20.0), // Added this
          ),
          // Added the following properties for size customization
          elevation: 0,
          highlightElevation: 0,
          mini: false,
          heroTag: null,
        ),
        SizedBox(width: 40), // Added this for spacing between buttons
      ],
    ),
  ),

You can adjust the SizedBox(width: 40) to change the spacing between the flash button and the capture button. Feel free to modify the code further to suit your needs.
 
paki ayos naman itong info.dart ko, ang gusto ko ay, meron itong container na pwedeng paglagyan ng photo or logo, at sa baba ng container, makikita ang paragraph na ito

DYE IT is meticulously crafted to cater to a diverse range of users who are passionate about colors and their applications. The primary target audience includes:Design Professionals: Graphic designers, interior designers, fashion designers, and other creative professionals who rely on precise color identification for their projects.Visual Artists: Painters, illustrators, and digital artists seeking inspiration and accurate color representation in their artwork.Color Enthusiasts: Individuals with a keen interest in exploring and understanding various color shades, combinations, and their real-world applications.Students and Educators: Art students, design students, and educators in visual arts and design-related disciplines, facilitating learning and experimentation in the realm of colors.Accessibility Advocates: Users with color vision deficiencies (color blindness) who can benefit from the app's Color Blind Mode, ensuring an inclusive experience with colors.Home Decor Enthusiasts: Homeowners and interior decorating enthusiasts looking to match or coordinate colors for home decor and renovation projects.DIY Enthusiasts: DIY hobbyists and crafters engaged in projects where accurate color matching is crucial, such as painting, crafting, and fabric selection.By catering to this diverse user base, DYE IT addresses the needs of professionals, artists, learners, and everyday users, providing a seamless and enriching experience in the world of colors.



// ignore_for_file: unused_import, prefer_const_constructors
import 'package:flutter/material.dart';
import 'homepage.dart';
import 'package:colorapp/main.dart';
import 'package:colorapp/global.dart';
class InfoPage extends StatelessWidget {
final bool isDarkModeEnabled; // Define isDarkModeEnabled parameter
// Constructor to initialize isDarkModeEnabled
const InfoPage({
Key? key,
required this.isDarkModeEnabled,
}) : super(key: key);
Override
Widget build(BuildContext context) {
return MaterialApp(
theme: isDarkModeEnabled ? ThemeData.dark() : ThemeData.light(),
home: Scaffold(
appBar: AppBar(
title: Text('Dye It'),
backgroundColor: Colors.deepPurple,
),
),
);
}
}
 
I see that you want to add a container with a photo or logo at the top and a paragraph below it in your info.dart file. Here's an updated version of your code that includes a container with an image and the paragraph:

Code:
// ignore_for_file: unused_import, prefer_const_constructors
import 'package:flutter/material.dart';
import 'homepage.dart';
import 'package:colorapp/main.dart';
import 'package:colorapp/global.dart';

class InfoPage extends StatelessWidget {
  final bool isDarkModeEnabled; // Define isDarkModeEnabled parameter
  
  // Constructor to initialize isDarkModeEnabled
  const InfoPage({
    Key? key,
    required this.isDarkModeEnabled,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: isDarkModeEnabled ? ThemeData.dark() : ThemeData.light(),
      home: Scaffold(
        appBar: AppBar(
          title: Text('Dye It'),
          backgroundColor: Colors.deepPurple,
        ),
        body: Column(
          children: [
            Container(
              height: 200,
              width: double.infinity,
              color: Colors.grey[200],
              child: Image.asset('path_to_your_photo_or_logo'),
            ),
            Padding(
              padding: const EdgeInsets.all(16.0),
              child: Text(
                '''
                DYE IT is meticulously crafted to cater to a diverse range of users who are passionate about colors and their applications. The primary target audience includes:

                Design Professionals: Graphic designers, interior designers, fashion designers, and other creative professionals who rely on precise color identification for their projects.
                
                Visual Artists: Painters, illustrators, and digital artists seeking inspiration and accurate color representation in their artwork.
                
                Color Enthusiasts: Individuals with a keen interest in exploring and understanding various color shades, combinations, and their real-world applications.
                
                Students and Educators: Art students, design students, and educators in visual arts and design-related disciplines, facilitating learning and experimentation in the realm of colors.
                
                Accessibility Advocates: Users with color vision deficiencies (color blindness) who can benefit from the app's Color Blind Mode, ensuring an inclusive experience with colors.
                
                Home Decor Enthusiasts: Homeowners and interior decorating enthusiasts looking to match or coordinate colors for home decor and renovation projects.
                
                DIY Enthusiasts: DIY hobbyists and crafters engaged in projects where accurate color matching is crucial, such as painting, crafting, and fabric selection.
                
                By catering to this diverse user base, DYE IT addresses the needs of professionals, artists, learners, and everyday users, providing a seamless and enriching experience in the world of colors.
                ''',
              ),
            ),
          ],
        ),
      ),
    );
  }
}

In this updated code:

1. I added a Column widget as the body of the Scaffold to stack the container and paragraph vertically.
2. Inside the Column, I added a Container widget with a fixed height of 200 and a width of double.infinity to take up the full width of the screen. You can customize the height and add your photo or logo using the child property of the Container.
3. Below the Container, I added a Padding widget to add some space around the paragraph.
4. Inside the Padding widget, I added a Text widget with the long paragraph you provided.

Make sure to replace 'path_to_your_photo_or_logo' with the actual path to your photo or logo image file.
 
I see that you want to add a container with a photo or logo at the top and a paragraph below it in your info.dart file. Here's an updated version of your code that includes a container with an image and the paragraph:

Code:
// ignore_for_file: unused_import, prefer_const_constructors
import 'package:flutter/material.dart';
import 'homepage.dart';
import 'package:colorapp/main.dart';
import 'package:colorapp/global.dart';

class InfoPage extends StatelessWidget {
  final bool isDarkModeEnabled; // Define isDarkModeEnabled parameter
 
  // Constructor to initialize isDarkModeEnabled
  const InfoPage({
    Key? key,
    required this.isDarkModeEnabled,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: isDarkModeEnabled ? ThemeData.dark() : ThemeData.light(),
      home: Scaffold(
        appBar: AppBar(
          title: Text('Dye It'),
          backgroundColor: Colors.deepPurple,
        ),
        body: Column(
          children: [
            Container(
              height: 200,
              width: double.infinity,
              color: Colors.grey[200],
              child: Image.asset('path_to_your_photo_or_logo'),
            ),
            Padding(
              padding: const EdgeInsets.all(16.0),
              child: Text(
                '''
                DYE IT is meticulously crafted to cater to a diverse range of users who are passionate about colors and their applications. The primary target audience includes:

                Design Professionals: Graphic designers, interior designers, fashion designers, and other creative professionals who rely on precise color identification for their projects.
               
                Visual Artists: Painters, illustrators, and digital artists seeking inspiration and accurate color representation in their artwork.
               
                Color Enthusiasts: Individuals with a keen interest in exploring and understanding various color shades, combinations, and their real-world applications.
               
                Students and Educators: Art students, design students, and educators in visual arts and design-related disciplines, facilitating learning and experimentation in the realm of colors.
               
                Accessibility Advocates: Users with color vision deficiencies (color blindness) who can benefit from the app's Color Blind Mode, ensuring an inclusive experience with colors.
               
                Home Decor Enthusiasts: Homeowners and interior decorating enthusiasts looking to match or coordinate colors for home decor and renovation projects.
               
                DIY Enthusiasts: DIY hobbyists and crafters engaged in projects where accurate color matching is crucial, such as painting, crafting, and fabric selection.
               
                By catering to this diverse user base, DYE IT addresses the needs of professionals, artists, learners, and everyday users, providing a seamless and enriching experience in the world of colors.
                ''',
              ),
            ),
          ],
        ),
      ),
    );
  }
}

In this updated code:

1. I added a Column widget as the body of the Scaffold to stack the container and paragraph vertically.
2. Inside the Column, I added a Container widget with a fixed height of 200 and a width of double.infinity to take up the full width of the screen. You can customize the height and add your photo or logo using the child property of the Container.
3. Below the Container, I added a Padding widget to add some space around the paragraph.
4. Inside the Padding widget, I added a Text widget with the long paragraph you provided.

Make sure to replace 'path_to_your_photo_or_logo' with the actual path to your photo or logo image file.
gawin din singlescrollview
 
gawin din singlescrollview
If you want to add a SingleChildScrollView to your InfoPage widget to enable scrolling when the content overflows, you can modify the code as follows:

Code:
// ignore_for_file: unused_import, prefer_const_constructors
import 'package:flutter/material.dart';
import 'homepage.dart';
import 'package:colorapp/main.dart';
import 'package:colorapp/global.dart';

class InfoPage extends StatelessWidget {
  final bool isDarkModeEnabled; // Define isDarkModeEnabled parameter
 
  // Constructor to initialize isDarkModeEnabled
  const InfoPage({
    Key? key,
    required this.isDarkModeEnabled,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: isDarkModeEnabled ? ThemeData.dark() : ThemeData.light(),
      home: Scaffold(
        appBar: AppBar(
          title: Text('Dye It'),
          backgroundColor: Colors.deepPurple,
        ),
        body: SingleChildScrollView( // Added SingleChildScrollView
          child: Column(
            children: [
              Container(
                height: 200,
                width: double.infinity,
                color: Colors.grey[200],
                child: Image.asset('path_to_your_photo_or_logo'),
              ),
              Padding(
                padding: const EdgeInsets.all(16.0),
                child: Text(
                  '''
                  DYE IT is meticulously crafted to cater to a diverse range of users who are passionate about colors and their applications. The primary target audience includes:

                  Design Professionals: Graphic designers, interior designers, fashion designers, and other creative professionals who rely on precise color identification for their projects.
                 
                  Visual Artists: Painters, illustrators, and digital artists seeking inspiration and accurate color representation in their artwork.
                 
                  Color Enthusiasts: Individuals with a keen interest in exploring and understanding various color shades, combinations, and their real-world applications.
                 
                  Students and Educators: Art students, design students, and educators in visual arts and design-related disciplines, facilitating learning and experimentation in the realm of colors.
                 
                  Accessibility Advocates: Users with color vision deficiencies (color blindness) who can benefit from the app's Color Blind Mode, ensuring an inclusive experience with colors.
                 
                  Home Decor Enthusiasts: Homeowners and interior decorating enthusiasts looking to match or coordinate colors for home decor and renovation projects.
                 
                  DIY Enthusiasts: DIY hobbyists and crafters engaged in projects where accurate color matching is crucial, such as painting, crafting, and fabric selection.
                 
                  By catering to this diverse user base, DYE IT addresses the needs of professionals, artists, learners, and everyday users, providing a seamless and enriching experience in the world of colors.
                  ''',
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

In this updated code, I wrapped the Column widget with a SingleChildScrollView. This allows the content to scroll vertically when it exceeds the available space. Now, if the content is longer than the screen height, users can scroll to see the entire paragraph.

Remember to replace 'path_to_your_photo_or_logo' with the actual path to your photo or logo image file.
 
If you want to add a SingleChildScrollView to your InfoPage widget to enable scrolling when the content overflows, you can modify the code as follows:

Code:
// ignore_for_file: unused_import, prefer_const_constructors
import 'package:flutter/material.dart';
import 'homepage.dart';
import 'package:colorapp/main.dart';
import 'package:colorapp/global.dart';

class InfoPage extends StatelessWidget {
  final bool isDarkModeEnabled; // Define isDarkModeEnabled parameter
 
  // Constructor to initialize isDarkModeEnabled
  const InfoPage({
    Key? key,
    required this.isDarkModeEnabled,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: isDarkModeEnabled ? ThemeData.dark() : ThemeData.light(),
      home: Scaffold(
        appBar: AppBar(
          title: Text('Dye It'),
          backgroundColor: Colors.deepPurple,
        ),
        body: SingleChildScrollView( // Added SingleChildScrollView
          child: Column(
            children: [
              Container(
                height: 200,
                width: double.infinity,
                color: Colors.grey[200],
                child: Image.asset('path_to_your_photo_or_logo'),
              ),
              Padding(
                padding: const EdgeInsets.all(16.0),
                child: Text(
                  '''
                  DYE IT is meticulously crafted to cater to a diverse range of users who are passionate about colors and their applications. The primary target audience includes:

                  Design Professionals: Graphic designers, interior designers, fashion designers, and other creative professionals who rely on precise color identification for their projects.
                
                  Visual Artists: Painters, illustrators, and digital artists seeking inspiration and accurate color representation in their artwork.
                
                  Color Enthusiasts: Individuals with a keen interest in exploring and understanding various color shades, combinations, and their real-world applications.
                
                  Students and Educators: Art students, design students, and educators in visual arts and design-related disciplines, facilitating learning and experimentation in the realm of colors.
                
                  Accessibility Advocates: Users with color vision deficiencies (color blindness) who can benefit from the app's Color Blind Mode, ensuring an inclusive experience with colors.
                
                  Home Decor Enthusiasts: Homeowners and interior decorating enthusiasts looking to match or coordinate colors for home decor and renovation projects.
                
                  DIY Enthusiasts: DIY hobbyists and crafters engaged in projects where accurate color matching is crucial, such as painting, crafting, and fabric selection.
                
                  By catering to this diverse user base, DYE IT addresses the needs of professionals, artists, learners, and everyday users, providing a seamless and enriching experience in the world of colors.
                  ''',
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

In this updated code, I wrapped the Column widget with a SingleChildScrollView. This allows the content to scroll vertically when it exceeds the available space. Now, if the content is longer than the screen height, users can scroll to see the entire paragraph.

Remember to replace 'path_to_your_photo_or_logo' with the actual path to your photo or logo image file.
paki lagyan din ng borderradius.circular yung paglalagyan ng logo
 
paki edit yung code ko. paki lagyan ng borderradius.circular yung paglalagyan ng logo

// ignore_for_file: unused_import, prefer_const_constructors
import 'package:flutter/material.dart';
import 'homepage.dart';
import 'package:colorapp/main.dart';
import 'package:colorapp/global.dart';
class InfoPage extends StatelessWidget {
final bool isDarkModeEnabled; // Define isDarkModeEnabled parameter

// Constructor to initialize isDarkModeEnabled
const InfoPage({
Key? key,
required this.isDarkModeEnabled,
}) : super(key: key);
Override
Widget build(BuildContext context) {
return MaterialApp(
theme: isDarkModeEnabled ? ThemeData.dark() : ThemeData.light(),
home: Scaffold(
appBar: AppBar(
title: Text('Dye It'),
backgroundColor: Colors.deepPurple,
),
body: SingleChildScrollView( // Added SingleChildScrollView
child: Column(
children: [
Container(
height: 200,
width: double.infinity,
color: Colors.grey[200],
child: Image.asset('assets/logo.png'),
),
Padding(
padding: const EdgeInsets.all(16.0),
child: Text(
'''
DYE IT is meticulously crafted to cater to a diverse range of users who are passionate about colors and their applications. The primary target audience includes:
Design Professionals: Graphic designers, interior designers, fashion designers, and other creative professionals who rely on precise color identification for their projects.

Visual Artists: Painters, illustrators, and digital artists seeking inspiration and accurate color representation in their artwork.

Color Enthusiasts: Individuals with a keen interest in exploring and understanding various color shades, combinations, and their real-world applications.

Students and Educators: Art students, design students, and educators in visual arts and design-related disciplines, facilitating learning and experimentation in the realm of colors.

Accessibility Advocates: Users with color vision deficiencies (color blindness) who can benefit from the app's Color Blind Mode, ensuring an inclusive experience with colors.

Home Decor Enthusiasts: Homeowners and interior decorating enthusiasts looking to match or coordinate colors for home decor and renovation projects.

DIY Enthusiasts: DIY hobbyists and crafters engaged in projects where accurate color matching is crucial, such as painting, crafting, and fabric selection.

By catering to this diverse user base, DYE IT addresses the needs of professionals, artists, learners, and everyday users, providing a seamless and enriching experience in the world of colors.
''',
),
),
],
),
),
),
);
}
}
 
Sure, here's your code with the borderRadius.circular added to the container that holds the logo:

Code:
// ignore_for_file: unused_import, prefer_const_constructors
import 'package:flutter/material.dart';
import 'homepage.dart';
import 'package:colorapp/main.dart';
import 'package:colorapp/global.dart';

class InfoPage extends StatelessWidget {
  final bool isDarkModeEnabled; // Define isDarkModeEnabled parameter
 
  // Constructor to initialize isDarkModeEnabled
  const InfoPage({
    Key? key,
    required this.isDarkModeEnabled,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: isDarkModeEnabled ? ThemeData.dark() : ThemeData.light(),
      home: Scaffold(
        appBar: AppBar(
          title: Text('Dye It'),
          backgroundColor: Colors.deepPurple,
        ),
        body: SingleChildScrollView( // Added SingleChildScrollView
          child: Column(
            children: [
              Container(
                height: 200,
                width: double.infinity,
                color: Colors.grey[200],
                child: ClipRRect(
                  borderRadius: BorderRadius.circular(16.0),
                  child: Image.asset('assets/logo.png'),
                ),
              ),
              Padding(
                padding: const EdgeInsets.all(16.0),
                child: Text(
                  '''
                  DYE IT is meticulously crafted to cater to a diverse range of users who are passionate about colors and their applications. The primary target audience includes:
                  Design Professionals: Graphic designers, interior designers, fashion designers, and other creative professionals who rely on precise color identification for their projects.
                 
                  Visual Artists: Painters, illustrators, and digital artists seeking inspiration and accurate color representation in their artwork.
                 
                  Color Enthusiasts: Individuals with a keen interest in exploring and understanding various color shades, combinations, and their real-world applications.
                 
                  Students and Educators: Art students, design students, and educators in visual arts and design-related disciplines, facilitating learning and experimentation in the realm of colors.
                 
                  Accessibility Advocates: Users with color vision deficiencies (color blindness) who can benefit from the app's Color Blind Mode, ensuring an inclusive experience with colors.
                 
                  Home Decor Enthusiasts: Homeowners and interior decorating enthusiasts looking to match or coordinate colors for home decor and renovation projects.
                 
                  DIY Enthusiasts: DIY hobbyists and crafters engaged in projects where accurate color matching is crucial, such as painting, crafting, and fabric selection.
                 
                  By catering to this diverse user base, DYE IT addresses the needs of professionals, artists, learners, and everyday users, providing a seamless and enriching experience in the world of colors.
                  ''',
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

I have added the ClipRRect widget around the Image.asset widget to clip the image with rounded corners. The borderRadius property is set to BorderRadius.circular(16.0) to achieve the circular border.
 
Sure, here's your code with the borderRadius.circular added to the container that holds the logo:

Code:
// ignore_for_file: unused_import, prefer_const_constructors
import 'package:flutter/material.dart';
import 'homepage.dart';
import 'package:colorapp/main.dart';
import 'package:colorapp/global.dart';

class InfoPage extends StatelessWidget {
  final bool isDarkModeEnabled; // Define isDarkModeEnabled parameter
 
  // Constructor to initialize isDarkModeEnabled
  const InfoPage({
    Key? key,
    required this.isDarkModeEnabled,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: isDarkModeEnabled ? ThemeData.dark() : ThemeData.light(),
      home: Scaffold(
        appBar: AppBar(
          title: Text('Dye It'),
          backgroundColor: Colors.deepPurple,
        ),
        body: SingleChildScrollView( // Added SingleChildScrollView
          child: Column(
            children: [
              Container(
                height: 200,
                width: double.infinity,
                color: Colors.grey[200],
                child: ClipRRect(
                  borderRadius: BorderRadius.circular(16.0),
                  child: Image.asset('assets/logo.png'),
                ),
              ),
              Padding(
                padding: const EdgeInsets.all(16.0),
                child: Text(
                  '''
                  DYE IT is meticulously crafted to cater to a diverse range of users who are passionate about colors and their applications. The primary target audience includes:
                  Design Professionals: Graphic designers, interior designers, fashion designers, and other creative professionals who rely on precise color identification for their projects.
                
                  Visual Artists: Painters, illustrators, and digital artists seeking inspiration and accurate color representation in their artwork.
                
                  Color Enthusiasts: Individuals with a keen interest in exploring and understanding various color shades, combinations, and their real-world applications.
                
                  Students and Educators: Art students, design students, and educators in visual arts and design-related disciplines, facilitating learning and experimentation in the realm of colors.
                
                  Accessibility Advocates: Users with color vision deficiencies (color blindness) who can benefit from the app's Color Blind Mode, ensuring an inclusive experience with colors.
                
                  Home Decor Enthusiasts: Homeowners and interior decorating enthusiasts looking to match or coordinate colors for home decor and renovation projects.
                
                  DIY Enthusiasts: DIY hobbyists and crafters engaged in projects where accurate color matching is crucial, such as painting, crafting, and fabric selection.
                
                  By catering to this diverse user base, DYE IT addresses the needs of professionals, artists, learners, and everyday users, providing a seamless and enriching experience in the world of colors.
                  ''',
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

I have added the ClipRRect widget around the Image.asset widget to clip the image with rounded corners. The borderRadius property is set to BorderRadius.circular(16.0) to achieve the circular border.
paki edit ulit, yung container yung may
borderRadius: BorderRadius.circular(30),
 
paki edit ulit, yung container yung may
borderRadius: BorderRadius.circular(30),
Sure, here's your code with the borderRadius.circular set to 30 for the container that holds the logo:

Code:
// ignore_for_file: unused_import, prefer_const_constructors
import 'package:flutter/material.dart';
import 'homepage.dart';
import 'package:colorapp/main.dart';
import 'package:colorapp/global.dart';

class InfoPage extends StatelessWidget {
  final bool isDarkModeEnabled; // Define isDarkModeEnabled parameter
 
  // Constructor to initialize isDarkModeEnabled
  const InfoPage({
    Key? key,
    required this.isDarkModeEnabled,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: isDarkModeEnabled ? ThemeData.dark() : ThemeData.light(),
      home: Scaffold(
        appBar: AppBar(
          title: Text('Dye It'),
          backgroundColor: Colors.deepPurple,
        ),
        body: SingleChildScrollView( // Added SingleChildScrollView
          child: Column(
            children: [
              Container(
                height: 200,
                width: double.infinity,
                decoration: BoxDecoration(
                  color: Colors.grey[200],
                  borderRadius: BorderRadius.circular(30),
                ),
                child: ClipRRect(
                  borderRadius: BorderRadius.circular(30),
                  child: Image.asset('assets/logo.png'),
                ),
              ),
              Padding(
                padding: const EdgeInsets.all(16.0),
                child: Text(
                  '''
                  DYE IT is meticulously crafted to cater to a diverse range of users who are passionate about colors and their applications. The primary target audience includes:
                  Design Professionals: Graphic designers, interior designers, fashion designers, and other creative professionals who rely on precise color identification for their projects.
                
                  Visual Artists: Painters, illustrators, and digital artists seeking inspiration and accurate color representation in their artwork.
                
                  Color Enthusiasts: Individuals with a keen interest in exploring and understanding various color shades, combinations, and their real-world applications.
                
                  Students and Educators: Art students, design students, and educators in visual arts and design-related disciplines, facilitating learning and experimentation in the realm of colors.
                
                  Accessibility Advocates: Users with color vision deficiencies (color blindness) who can benefit from the app's Color Blind Mode, ensuring an inclusive experience with colors.
                
                  Home Decor Enthusiasts: Homeowners and interior decorating enthusiasts looking to match or coordinate colors for home decor and renovation projects.
                
                  DIY Enthusiasts: DIY hobbyists and crafters engaged in projects where accurate color matching is crucial, such as painting, crafting, and fabric selection.
                
                  By catering to this diverse user base, DYE IT addresses the needs of professionals, artists, learners, and everyday users, providing a seamless and enriching experience in the world of colors.
                  ''',
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

I have updated the code to set the borderRadius property of the container to BorderRadius.circular(30). Similarly, the borderRadius property of the ClipRRect widget is also set to BorderRadius.circular(30) to achieve the rounded corners for the logo container.
 
Sure, here's your code with the borderRadius.circular set to 30 for the container that holds the logo:

Code:
// ignore_for_file: unused_import, prefer_const_constructors
import 'package:flutter/material.dart';
import 'homepage.dart';
import 'package:colorapp/main.dart';
import 'package:colorapp/global.dart';

class InfoPage extends StatelessWidget {
  final bool isDarkModeEnabled; // Define isDarkModeEnabled parameter
 
  // Constructor to initialize isDarkModeEnabled
  const InfoPage({
    Key? key,
    required this.isDarkModeEnabled,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: isDarkModeEnabled ? ThemeData.dark() : ThemeData.light(),
      home: Scaffold(
        appBar: AppBar(
          title: Text('Dye It'),
          backgroundColor: Colors.deepPurple,
        ),
        body: SingleChildScrollView( // Added SingleChildScrollView
          child: Column(
            children: [
              Container(
                height: 200,
                width: double.infinity,
                decoration: BoxDecoration(
                  color: Colors.grey[200],
                  borderRadius: BorderRadius.circular(30),
                ),
                child: ClipRRect(
                  borderRadius: BorderRadius.circular(30),
                  child: Image.asset('assets/logo.png'),
                ),
              ),
              Padding(
                padding: const EdgeInsets.all(16.0),
                child: Text(
                  '''
                  DYE IT is meticulously crafted to cater to a diverse range of users who are passionate about colors and their applications. The primary target audience includes:
                  Design Professionals: Graphic designers, interior designers, fashion designers, and other creative professionals who rely on precise color identification for their projects.
               
                  Visual Artists: Painters, illustrators, and digital artists seeking inspiration and accurate color representation in their artwork.
               
                  Color Enthusiasts: Individuals with a keen interest in exploring and understanding various color shades, combinations, and their real-world applications.
               
                  Students and Educators: Art students, design students, and educators in visual arts and design-related disciplines, facilitating learning and experimentation in the realm of colors.
               
                  Accessibility Advocates: Users with color vision deficiencies (color blindness) who can benefit from the app's Color Blind Mode, ensuring an inclusive experience with colors.
               
                  Home Decor Enthusiasts: Homeowners and interior decorating enthusiasts looking to match or coordinate colors for home decor and renovation projects.
               
                  DIY Enthusiasts: DIY hobbyists and crafters engaged in projects where accurate color matching is crucial, such as painting, crafting, and fabric selection.
               
                  By catering to this diverse user base, DYE IT addresses the needs of professionals, artists, learners, and everyday users, providing a seamless and enriching experience in the world of colors.
                  ''',
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

I have updated the code to set the borderRadius property of the container to BorderRadius.circular(30). Similarly, the borderRadius property of the ClipRRect widget is also set to BorderRadius.circular(30) to achieve the rounded corners for the logo container.
paki edit ulit. gusto ko naman mabago yung size ng logo
 
paki edit ulit. gusto ko naman mabago yung size ng logo
Sure, here's your code with the size of the logo adjusted:

```dart
// ignore_for_file: unused_import, prefer_const_constructors
import 'package:flutter/material.dart';
import 'homepage.dart';
import 'package:colorapp/main.dart';
import 'package:colorapp/global.dart
 
paki edit yung code ko, gusto ko pwede mabago yung size ng logo.png
// ignore_for_file: unused_import, prefer_const_constructors
import 'package:flutter/material.dart';
import 'homepage.dart';
import 'package:colorapp/main.dart';
import 'package:colorapp/global.dart';
class InfoPage extends StatelessWidget {
final bool isDarkModeEnabled; // Define isDarkModeEnabled parameter

// Constructor to initialize isDarkModeEnabled
const InfoPage({
Key? key,
required this.isDarkModeEnabled,
}) : super(key: key);
Override
Widget build(BuildContext context) {
return MaterialApp(
theme: isDarkModeEnabled ? ThemeData.dark() : ThemeData.light(),
home: Scaffold(
appBar: AppBar(
title: Text('Dye It'),
backgroundColor: Colors.deepPurple,
),
body: SingleChildScrollView( // Added SingleChildScrollView
child: Column(
children: [
Container(
height: 300,
width: 300,
decoration: BoxDecoration(
color: Colors.grey[200],
borderRadius: BorderRadius.circular(20),
),
child: ClipRRect(
borderRadius: BorderRadius.circular(20),
child: Image.asset('assets/logo.png',),
),
),
Padding(
padding: const EdgeInsets.all(16.0),
child: Text(
'''
DYE IT is meticulously crafted to cater to a diverse range of users who are passionate about colors and their applications. The primary target audience includes:
Design Professionals: Graphic designers, interior designers, fashion designers, and other creative professionals who rely on precise color identification for their projects.

Visual Artists: Painters, illustrators, and digital artists seeking inspiration and accurate color representation in their artwork.

Color Enthusiasts: Individuals with a keen interest in exploring and understanding various color shades, combinations, and their real-world applications.

Students and Educators: Art students, design students, and educators in visual arts and design-related disciplines, facilitating learning and experimentation in the realm of colors.

Accessibility Advocates: Users with color vision deficiencies (color blindness) who can benefit from the app's Color Blind Mode, ensuring an inclusive experience with colors.

Home Decor Enthusiasts: Homeowners and interior decorating enthusiasts looking to match or coordinate colors for home decor and renovation projects.

DIY Enthusiasts: DIY hobbyists and crafters engaged in projects where accurate color matching is crucial, such as painting, crafting, and fabric selection.

By catering to this diverse user base, DYE IT addresses the needs of professionals, artists, learners, and everyday users, providing a seamless and enriching experience in the world of colors.
''',
),
),
],
),
),
),
);
}
}
 
Sure, here's the modified code where you can change the size of the logo.png:

Code:
// ignore_for_file: unused_import, prefer_const_constructors
import 'package:flutter/material.dart';
import 'homepage.dart';
import 'package:colorapp/main.dart';
import 'package:colorapp/global.dart';

class InfoPage extends StatelessWidget {
  final bool isDarkModeEnabled; // Define isDarkModeEnabled parameter
 
  // Constructor to initialize isDarkModeEnabled
  const InfoPage({
    Key? key,
    required this.isDarkModeEnabled,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: isDarkModeEnabled ? ThemeData.dark() : ThemeData.light(),
      home: Scaffold(
        appBar: AppBar(
          title: Text('Dye It'),
          backgroundColor: Colors.deepPurple,
        ),
        body: SingleChildScrollView(
          child: Column(
            children: [
              Container(
                height: 300,
                width: 300,
                decoration: BoxDecoration(
                  color: Colors.grey[200],
                  borderRadius: BorderRadius.circular(20),
                ),
                child: ClipRRect(
                  borderRadius: BorderRadius.circular(20),
                  child: Image.asset(
                    'assets/logo.png',
                    width: 200, // Change the width of the image here
                    height: 200, // Change the height of the image here
                  ),
                ),
              ),
              Padding(
                padding: const EdgeInsets.all(16.0),
                child: Text(
                  '''
                  DYE IT is meticulously crafted to cater to a diverse range of users who are passionate about colors and their applications. The primary target audience includes:
                  
                  Design Professionals: Graphic designers, interior designers, fashion designers, and other creative professionals who rely on precise color identification for their projects.
                
                  Visual Artists: Painters, illustrators, and digital artists seeking inspiration and accurate color representation in their artwork.
                
                  Color Enthusiasts: Individuals with a keen interest in exploring and understanding various color shades, combinations, and their real-world applications.
                
                  Students and Educators: Art students, design students, and educators in visual arts and design-related disciplines, facilitating learning and experimentation in the realm of colors.
                
                  Accessibility Advocates: Users with color vision deficiencies (color blindness) who can benefit from the app's Color Blind Mode, ensuring an inclusive experience with colors.
                
                  Home Decor Enthusiasts: Homeowners and interior decorating enthusiasts looking to match or coordinate colors for home decor and renovation projects.
                
                  DIY Enthusiasts: DIY hobbyists and crafters engaged in projects where accurate color matching is crucial, such as painting, crafting, and fabric selection.
                
                  By catering to this diverse user base, DYE IT addresses the needs of professionals, artists, learners, and everyday users, providing a seamless and enriching experience in the world of colors.
                  ''',
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

In the code above, you can modify the width and height properties of the Image.asset widget to change the size of the logo.png. Simply replace the 200 values with your desired width and height in pixels.
 
paki bago naman yung child text
// ignore_for_file: unused_import, prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';
import 'homepage.dart';
import 'package:colorapp/main.dart';
import 'package:colorapp/global.dart';
class PrivacyPolicyPage extends StatelessWidget {
final bool isDarkModeEnabled; // Define isDarkModeEnabled parameter
const PrivacyPolicyPage({
Key? key,
required this.isDarkModeEnabled,
}) : super(key: key);
Override
Widget build(BuildContext context) {
return MaterialApp(
theme: isDarkModeEnabled ? ThemeData.dark() : ThemeData.light(),
home: Scaffold(
appBar: AppBar(
title: Text('Dye It'),
backgroundColor: Colors.deepPurple,
),
body: SingleChildScrollView(
child: Column(
children: [
Container(
height: 300,
width: 400,
decoration: BoxDecoration(
color: Colors.grey[200],
borderRadius: BorderRadius.circular(20),
),
child: Lottie.asset('assets/privacypolicy.json'),
),
Padding(
padding: const EdgeInsets.all(20.0),
child: Text(
'''
DYE IT is meticulously crafted to cater to a diverse range of users who are passionate about colors and their applications. The primary target audience includes:

Design Professionals: Graphic designers, interior designers, fashion designers, and other creative professionals who rely on precise color identification for their projects.

Visual Artists: Painters, illustrators, and digital artists seeking inspiration and accurate color representation in their artwork.

Color Enthusiasts: Individuals with a keen interest in exploring and understanding various color shades, combinations, and their real-world applications.

Students and Educators: Art students, design students, and educators in visual arts and design-related disciplines, facilitating learning and experimentation in the realm of colors.

Accessibility Advocates: Users with color vision deficiencies (color blindness) who can benefit from the app's Color Blind Mode, ensuring an inclusive experience with colors.

Home Decor Enthusiasts: Homeowners and interior decorating enthusiasts looking to match or coordinate colors for home decor and renovation projects.

DIY Enthusiasts: DIY hobbyists and crafters engaged in projects where accurate color matching is crucial, such as painting, crafting, and fabric selection.

By catering to this diverse user base, DYE IT addresses the needs of professionals, artists, learners, and everyday users, providing a seamless and enriching experience in the world of colors.
''',
),
),
],
),
),
),
);
}
}

palitan nito, lahat ng naka bold na words, lagyan ng malaking size at gawin ring bold
Information We Collect
DYE IT requires certain permissions to offer its unique features. These permissions are solely used to enhance your experience within the app:
Camera Access: This permission enables the app to identify colors in your surroundings using the device's camera.
Storage Access: DYE IT uses this permission to identify colors within images/photos stored on your device.

We want to assure you that DYE IT does not collect any personal data or information from its users. The permissions requested are strictly necessary for the proper functioning of the app's features.

Third-Party Services
DYE IT utilizes third-party services to enhance its functionality. These services include:
Google Play Services
AdMob
Google Analytics for Firebase ----
Firebase Crashlytics ----
Please refer to the respective privacy policies of these third-party service providers for more information on how they handle your data.

Cookies
DYE IT does not use cookies explicitly. However, the app may incorporate third-party code and libraries that use cookies to enhance their services. You have the option to accept or refuse these cookies. Refusing cookies might limit certain functionalities within the app.

Security
We prioritize the security of your personal information and use commercially acceptable methods to protect it. However, please note that no method of transmission over the internet or electronic storage is 100% secure. While we strive to use reliable means, we cannot guarantee absolute security.

Links to Other Sites
DYE IT may contain links to external websites. Please be aware that these sites are not operated by us, and we encourage you to review their respective privacy policies. We do not have control over the content, privacy practices, or policies of these third-party sites.

Children's Privacy
DYE IT does not collect personally identifiable information from individuals under the age of 13. If we discover that a child under 13 has provided us with personal information, we promptly delete it from our servers. If you are a parent or guardian and believe your child has provided us with personal information, please contact us immediately.

Changes to This Privacy Policy
We reserve the right to update our privacy policy as needed. Any changes will be communicated through the app. We encourage you to review this policy periodically for updates.

Contact Us
If you have any questions or concerns about our privacy policy, please do not hesitate to contact us at: dye883@gmail.com.

Thank you for choosing DYE IT, where your privacy and security are our utmost priority.
 

Similar threads

About this Thread

  • 119
    Replies
  • 4K
    Views
  • 2
    Participants
Last reply from:
Unknown user

Trending Topics

Online now

Members online
759
Guests online
1,801
Total visitors
2,560

Forum statistics

Threads
2,271,291
Posts
28,934,908
Members
1,238,544
Latest member
danyruedamusic
Back
Top