import 'package:flutter/material.dart';
void main() { runApp(SomeWidget()); }
class SomeWidget extends StatefulWidget { @override State createState() => SomeWidgetState(); }
| { | |
| "module_id": 2, | |
| "title": "The Overworld (Atmosphere & Decorations)", | |
| "objective": "Transform your party space into a pixelated wonderland using cheap and creative materials.", | |
| "decorations": [ | |
| { | |
| "name": "Blocky Terrain", | |
| "materials": [ | |
| "Amazon boxes", | |
| "Brown kraft paper", |
| { | |
| "module_id": 6, | |
| "title": "The Boss Fight (The Cake Ceremony)", | |
| "objective": "The grand finale before the party wraps up.", | |
| "cake_details": { | |
| "name": "The Dirt Block Cake", | |
| "base": "Standard chocolate sheet cake or cube-shaped cake", | |
| "layers": [ | |
| { | |
| "element": "Dirt", |
| import 'package:existence/src/app_libs.dart'; | |
| import 'package:flutter/material.dart'; | |
| class ParallaxGridSpike extends StatefulWidget { | |
| const ParallaxGridSpike({super.key}); | |
| @override | |
| State<ParallaxGridSpike> createState() => _ParallaxGridSpikeState(); | |
| } |
| import 'dart:math' as math; | |
| import 'package:flutter/material.dart'; | |
| class DropExtraChildren extends StatelessWidget { | |
| final double spacing; | |
| final List<Widget> children; | |
| const DropExtraChildren({ | |
| super.key, | |
| required this.spacing, |
| import 'package:flutter/material.dart'; | |
| class DropExtraChildren extends StatelessWidget { | |
| final Axis direction; | |
| final double spacing; | |
| final List<Widget> children; | |
| const DropExtraChildren({ | |
| super.key, | |
| this.direction = Axis.horizontal, |
import 'package:flutter/material.dart';
void main() { runApp(SomeWidget()); }
class SomeWidget extends StatefulWidget { @override State createState() => SomeWidgetState(); }
| mport 'package:flutter/material.dart'; | |
| void main() { runApp(SomeWidget()); } | |
| class SomeWidget extends StatefulWidget { @override State createState() => SomeWidgetState(); } | |
| class SomeWidgetState extends State { int count = 0; | |
| void incrementCount() => setState(() => count++); |
| import React, {useState, useEffect} from 'react'; | |
| const FlashCardGame = () => { | |
| const [score, setScore] = useState(0); | |
| const [quesNum, setQuesNum] = useState(0); | |
| const [questions, setQuestions] = useState([]); | |
| useEffect(() => { | |
| generateQuestions(); |
| // Controller | |
| class TodoController { | |
| constructor(api) { | |
| this.api = api; | |
| } | |
| async getAllTodos() { | |
| const todos = await this.api.getAllTodos(); | |
| return todos; | |
| } |