(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38149,e=>{"use strict";var s=e.i(43476);function r({title:e,description:r,controls:t,output:a}){return(0,s.jsxs)("div",{className:"container mx-auto px-4 py-8 max-w-7xl",children:[(0,s.jsxs)("div",{className:"mb-8",children:[(0,s.jsx)("h1",{className:"text-3xl font-bold tracking-tight text-foreground mb-2",children:e}),(0,s.jsx)("p",{className:"text-muted-foreground",children:r})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-start",children:[(0,s.jsx)("div",{className:"space-y-6",children:(0,s.jsx)("div",{className:"bg-card rounded-2xl border border-border p-6 shadow-sm",children:t})}),(0,s.jsx)("div",{className:"lg:sticky lg:top-24",children:(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-muted-foreground uppercase tracking-wider px-1",children:"Generated Output"}),a]})})]})]})}e.s(["ToolLayout",()=>r])},74886,e=>{"use strict";let s=(0,e.i(75254).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",()=>s],74886)},43531,e=>{"use strict";let s=(0,e.i(75254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>s],43531)},31067,e=>{"use strict";function s(){return(s=Object.assign.bind()).apply(null,arguments)}e.s(["default",()=>s])},38653,e=>{"use strict";var s=e.i(43476),r=e.i(71645),t=e.i(38149),a=e.i(74837);function l(){let[e,l]=(0,r.useState)("John Doe"),[n,i]=(0,r.useState)("Software Engineer"),[d,o]=(0,r.useState)(16),[c,u]=(0,r.useState)(!1),[x,m]=(0,r.useState)("CircleAvatar"),[g,h]=(0,r.useState)("Icon"),p=`ListTile(
  contentPadding: const EdgeInsets.symmetric(horizontal: ${d}),
  leading: ${"CircleAvatar"===x?"const CircleAvatar(child: Icon(Icons.person))":"const Icon(Icons.person)"},
  title: const Text("${e}"),
  subtitle: const Text("${n}"),
  trailing: ${"Icon"===g?"const Icon(Icons.arrow_forward_ios, size: 16)":"null"},
  isThreeLine: ${c},
  onTap: () {
    // Action here
  },
)`;return(0,s.jsx)(t.ToolLayout,{title:"Flutter ListTile Generator",description:"Create standard list items with lead icons, titles, and trailing actions.",controls:(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"Title"}),(0,s.jsx)("input",{type:"text",value:e,onChange:e=>l(e.target.value),className:"w-full px-4 py-2 bg-background border border-border rounded-xl focus:ring-2 focus:ring-primary outline-none"})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"Subtitle"}),(0,s.jsx)("input",{type:"text",value:n,onChange:e=>i(e.target.value),className:"w-full px-4 py-2 bg-background border border-border rounded-xl focus:ring-2 focus:ring-primary outline-none"})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"Horizontal Padding"}),(0,s.jsx)("input",{type:"range",min:"0",max:"64",step:"1",value:d,onChange:e=>o(parseInt(e.target.value)),className:"w-full"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"Leading Widget"}),(0,s.jsxs)("select",{value:x,onChange:e=>m(e.target.value),className:"w-full px-4 py-2 bg-background border border-border rounded-xl focus:ring-2 focus:ring-primary outline-none",children:[(0,s.jsx)("option",{value:"CircleAvatar",children:"CircleAvatar"}),(0,s.jsx)("option",{value:"Icon",children:"Icon"}),(0,s.jsx)("option",{value:"None",children:"None"})]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("label",{className:"text-sm font-medium text-muted-foreground",children:"Trailing Widget"}),(0,s.jsxs)("select",{value:g,onChange:e=>h(e.target.value),className:"w-full px-4 py-2 bg-background border border-border rounded-xl focus:ring-2 focus:ring-primary outline-none",children:[(0,s.jsx)("option",{value:"Icon",children:"Icon"}),(0,s.jsx)("option",{value:"None",children:"None"})]})]})]}),(0,s.jsxs)("div",{className:"pt-8 border-t border-border flex flex-col items-center",children:[(0,s.jsx)("span",{className:"text-xs text-muted-foreground uppercase tracking-widest block mb-10",children:"Preview"}),(0,s.jsx)("div",{className:"p-10 bg-slate-100 dark:bg-slate-900 rounded-3xl w-full",children:(0,s.jsxs)("div",{style:{padding:`0 ${d}px`},className:"h-20 w-full bg-background border border-border rounded-xl flex items-center shadow-sm",children:["None"!==x&&(0,s.jsx)("div",{className:`mr-4 shrink-0 flex items-center justify-center bg-primary/10 text-primary ${"CircleAvatar"===x?"w-10 h-10 rounded-full":"w-6 h-6"}`,children:(0,s.jsx)("div",{className:"w-5 h-5 bg-primary/20 rounded-full"})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("div",{className:"font-bold truncate",children:e}),(0,s.jsx)("div",{className:"text-xs text-muted-foreground truncate",children:n})]}),"None"!==g&&(0,s.jsx)("div",{className:"ml-4 w-4 h-4 border-2 border-primary/30 rounded-full"})]})})]})]}),output:(0,s.jsx)(a.CodeOutput,{code:p})})}e.s(["default",()=>l])}]);