(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38149,e=>{"use strict";var t=e.i(43476);function i({title:e,description:i,controls:r,output:d}){return(0,t.jsxs)("div",{className:"container mx-auto px-4 py-8 max-w-7xl",children:[(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold tracking-tight text-foreground mb-2",children:e}),(0,t.jsx)("p",{className:"text-muted-foreground",children:i})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-start",children:[(0,t.jsx)("div",{className:"space-y-6",children:(0,t.jsx)("div",{className:"bg-card rounded-2xl border border-border p-6 shadow-sm",children:r})}),(0,t.jsx)("div",{className:"lg:sticky lg:top-24",children:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-muted-foreground uppercase tracking-wider px-1",children:"Generated Output"}),d]})})]})]})}e.s(["ToolLayout",()=>i])},74886,e=>{"use strict";let t=(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",()=>t],74886)},43531,e=>{"use strict";let t=(0,e.i(75254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>t],43531)},31067,e=>{"use strict";function t(){return(t=Object.assign.bind()).apply(null,arguments)}e.s(["default",()=>t])},48068,e=>{"use strict";var t=e.i(43476),i=e.i(71645),r=e.i(38149),d=e.i(74837);let o=[{id:"login",name:"Modern Login Page",description:"Clean login screen with email/password fields and social buttons.",code:`class LoginPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Padding(
        padding: const EdgeInsets.all(24.0),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.stretch,
          children: [
            const Text("Welcome Back", style: TextStyle(fontSize: 32, fontWeight: FontWeight.bold)),
            const SizedBox(height: 40),
            TextField(decoration: InputDecoration(labelText: "Email", border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)))),
            const SizedBox(height: 16),
            TextField(obscureText: true, decoration: InputDecoration(labelText: "Password", border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)))),
            const SizedBox(height: 24),
            ElevatedButton(
              onPressed: () {},
              style: ElevatedButton.styleFrom(padding: const EdgeInsets.symmetric(vertical: 16), shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))),
              child: const Text("LOGIN"),
            ),
          ],
        ),
      ),
    );
  }
}`},{id:"dashboard",name:"Analytics Dashboard",description:"Grid-based dashboard with stats and activity list.",code:`class DashboardPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("Overview"), elevation: 0),
      body: GridView.count(
        crossAxisCount: 2,
        padding: const EdgeInsets.all(16),
        children: [
          _buildStatCard("Users", "1.2k", Colors.blue),
          _buildStatCard("Revenue", "$12k", Colors.green),
          _buildStatCard("Issues", "4", Colors.red),
          _buildStatCard("Tasks", "12", Colors.orange),
        ],
      ),
    );
  }

  Widget _buildStatCard(String title, String value, Color color) {
    return Card(
      elevation: 4,
      shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Text(title, style: TextStyle(color: color, fontWeight: FontWeight.bold)),
          const SizedBox(height: 8),
          Text(value, style: const TextStyle(fontSize: 24, fontWeight: FontWeight.bold)),
        ],
      ),
    );
  }
}`},{id:"onboarding",name:"Onboarding Slider",description:"Simple horizontal slider for feature walkthroughs.",code:`class OnboardingPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: PageView(
        children: [
          _buildStep("Feature 1", "Discover amazing things on this app."),
          _buildStep("Feature 2", "Connected with millions of users."),
          _buildStep("Get Started", "Ready to explore? Join now!"),
        ],
      ),
    );
  }

  Widget _buildStep(String title, String desc) {
    return Center(
      child: Padding(
        padding: const EdgeInsets.all(32.0),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const Icon(Icons.rocket_launch, size: 80, color: Colors.blue),
            const SizedBox(height: 32),
            Text(title, style: const TextStyle(fontSize: 28, fontWeight: FontWeight.bold)),
            const SizedBox(height: 16),
            Text(desc, textAlign: TextAlign.center, style: const TextStyle(color: Colors.grey)),
          ],
        ),
      ),
    );
  }
}`}];function s(){let[e,s]=(0,i.useState)(o[0]);return(0,t.jsx)(r.ToolLayout,{title:"Flutter UI Templates",description:"Grab ready-to-use, high-quality Flutter layouts and components to speed up your development.",controls:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("span",{className:"text-xs font-bold text-muted-foreground uppercase tracking-widest block mb-2",children:"Available Categories"}),o.map(i=>(0,t.jsxs)("button",{onClick:()=>s(i),className:`w-full p-6 rounded-2xl border text-left transition-all duration-300 ${e.id===i.id?"bg-primary/10 border-primary shadow-lg ring-1 ring-primary/20":"bg-card border-border hover:border-primary/50"}`,children:[(0,t.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,t.jsx)("h3",{className:`font-bold ${e.id===i.id?"text-primary":"text-foreground"}`,children:i.name}),(0,t.jsx)("span",{className:"text-[10px] px-2 py-0.5 rounded-full bg-secondary text-muted-foreground",children:"FLUTTER"})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-2 leading-relaxed",children:i.description})]},i.id)),(0,t.jsx)("div",{className:"p-4 mt-8 bg-accent/5 rounded-xl border border-accent/20",children:(0,t.jsx)("p",{className:"text-xs text-muted-foreground text-center italic",children:"More templates coming soon (Profile, Settings, Cart, etc.)"})})]}),output:(0,t.jsx)(d.CodeOutput,{code:e.code})})}e.s(["default",()=>s])}]);