<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hadoop Hadoop</title>
    <description>The latest articles on DEV Community by Hadoop Hadoop (@hadoop_hadoop_cb03e7be5b3).</description>
    <link>https://dev.to/hadoop_hadoop_cb03e7be5b3</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1819253%2F314436b3-0797-47c9-a6a2-914cd56bf702.png</url>
      <title>DEV Community: Hadoop Hadoop</title>
      <link>https://dev.to/hadoop_hadoop_cb03e7be5b3</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hadoop_hadoop_cb03e7be5b3"/>
    <language>en</language>
    <item>
      <title>making style Widget dynamic for elevated button</title>
      <dc:creator>Hadoop Hadoop</dc:creator>
      <pubDate>Mon, 22 Jul 2024 11:16:17 +0000</pubDate>
      <link>https://dev.to/hadoop_hadoop_cb03e7be5b3/making-style-widget-dynamic-for-elevated-button-263f</link>
      <guid>https://dev.to/hadoop_hadoop_cb03e7be5b3/making-style-widget-dynamic-for-elevated-button-263f</guid>
      <description>&lt;p&gt;I am trying to create a dynamic elevated button widget. &lt;/p&gt;

&lt;p&gt;`class CustomeElevatedBtn extends StatelessWidget {&lt;br&gt;
  const CustomeElevatedBtn(&lt;br&gt;
      {required this.child_, required this.onPressed_, required this.style_});&lt;/p&gt;

&lt;p&gt;final Widget child_;&lt;br&gt;
  final VoidCallback onPressed_;&lt;br&gt;
  final ??? style_;&lt;/p&gt;

&lt;p&gt;&lt;a class="mentioned-user" href="https://dev.to/override"&gt;@override&lt;/a&gt;&lt;br&gt;
  Widget build(BuildContext context) {&lt;br&gt;
    return ElevatedButton(&lt;br&gt;
      onPressed: onPressed_,&lt;br&gt;
      child: child_,&lt;br&gt;
      style: ElevatedButton.styleFrom(&lt;br&gt;
          shape: RoundedRectangleBorder(&lt;br&gt;
            borderRadius: BorderRadius.circular(25),&lt;br&gt;
          ),&lt;br&gt;
          padding: EdgeInsets.symmetric(horizontal: 16),&lt;br&gt;
          textStyle: TextStyle(fontSize: 14),&lt;br&gt;
          backgroundColor: Colors.orangeAccent,&lt;br&gt;
          foregroundColor: Colors.white),&lt;br&gt;
    );&lt;br&gt;
  }&lt;br&gt;
}`&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;br&gt;
I want to make the&lt;/code&gt;style widget dynamic, I mean &lt;code&gt;ElevatedButton.styleFrom&lt;/code&gt; Widget also dynamic but I am unable to do so. How can I do it? &lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
