flutter_widgets_demo
flutter_widgets_demo
dart';
void main() {
runApp(MyApp());
}
SizedBox(height: 16),
Container(
padding: EdgeInsets.all(16),
color: Colors.blue[100],
child: Text('WELCOME TO FLUTTER APP.'),
),
SizedBox(height: 16),
TextField(
decoration: InputDecoration(
labelText: 'Enter your name',
border: OutlineInputBorder(),
),
),
SizedBox(height: 16),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text('Enable notifications'),
Switch(
value: true,
onChanged: (bool value) {},
),
],
),
SizedBox(height: 16),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text('Accept terms'),
Checkbox(
value: true,
onChanged: (bool? value) {},
),
],
),
SizedBox(height: 16),
ElevatedButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => SubmittedPage()),
);
},
child: Text('Click Me'),
),
],
),
),
),
);
}
}