Skip to content

Instantly share code, notes, and snippets.

@knaeckeKami
Created February 14, 2024 15:35
Show Gist options
  • Save knaeckeKami/373f1cec5211b07fe432977c598fe579 to your computer and use it in GitHub Desktop.
Save knaeckeKami/373f1cec5211b07fe432977c598fe579 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData.dark().copyWith(
scaffoldBackgroundColor: darkBlue,
),
debugShowCheckedModeBanner: false,
home: Scaffold(
body: Center(
child: MyWidget(),
),
),
);
}
}
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
children: [
Row(
textDirection: TextDirection.rtl,
children: [
Expanded(
child: TextField(
decoration: InputDecoration(labelText: "label 1"),
)),
Expanded(
child: TextField(
decoration: InputDecoration(labelText: "label 2"),
)),
],
),
TextField(
decoration: InputDecoration(labelText: "label 3"),
)
],
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment