|
| 1 | +// ignore_for_file: use_key_in_widget_constructors |
| 2 | + |
| 3 | +import 'package:flutter/material.dart'; |
| 4 | + |
| 5 | +void main() { |
| 6 | + runApp(const MyApp()); |
| 7 | +} |
| 8 | + |
| 9 | +class MyApp extends StatelessWidget { |
| 10 | + const MyApp({super.key}); |
| 11 | + |
| 12 | + @override |
| 13 | + Widget build(BuildContext context) { |
| 14 | + return MaterialApp( |
| 15 | + debugShowCheckedModeBanner: false, |
| 16 | + home: Scaffold(body: Center(child: SDUIWidget())), |
| 17 | + ); |
| 18 | + } |
| 19 | +} |
| 20 | + |
| 21 | +class SDUIWidget extends StatelessWidget { |
| 22 | + @override |
| 23 | + Widget build(BuildContext context) { |
| 24 | + return Scaffold( |
| 25 | + backgroundColor: const Color(0xFFFFFFE0), |
| 26 | + body: Center( |
| 27 | + child: Column( |
| 28 | + mainAxisAlignment: MainAxisAlignment.center, |
| 29 | + crossAxisAlignment: CrossAxisAlignment.center, |
| 30 | + children: [ |
| 31 | + Text( |
| 32 | + "Dog Emojis", |
| 33 | + style: TextStyle( |
| 34 | + fontSize: 40, |
| 35 | + fontWeight: FontWeight.w700, |
| 36 | + ), |
| 37 | + ), |
| 38 | + SizedBox(height: 20), |
| 39 | + Table( |
| 40 | + columnWidths: { |
| 41 | + 0: FixedColumnWidth(200), |
| 42 | + 1: FixedColumnWidth(250), |
| 43 | + 2: FixedColumnWidth(250), |
| 44 | + 3: FixedColumnWidth(100), |
| 45 | + }, |
| 46 | + defaultColumnWidth: FlexColumnWidth(1), |
| 47 | + textDirection: TextDirection.ltr, |
| 48 | + defaultVerticalAlignment: TableCellVerticalAlignment.bottom, |
| 49 | + border: TableBorder.all( |
| 50 | + color: const Color(0xFF428AF5), |
| 51 | + width: 1.0, |
| 52 | + borderRadius: BorderRadius.circular(16), |
| 53 | + ), |
| 54 | + children: [ |
| 55 | + TableRow( |
| 56 | + children: [ |
| 57 | + TableCell( |
| 58 | + child: Padding( |
| 59 | + padding: const EdgeInsets.only( |
| 60 | + top: 10, left: 10, right: 10, bottom: 10), |
| 61 | + child: Container( |
| 62 | + color: const Color(0xFFFFFF00), |
| 63 | + height: 50.0, |
| 64 | + child: Center( |
| 65 | + child: Text( |
| 66 | + "Name", |
| 67 | + style: TextStyle(fontSize: 21.84), |
| 68 | + ), |
| 69 | + ), |
| 70 | + ), |
| 71 | + ), |
| 72 | + ), |
| 73 | + TableCell( |
| 74 | + child: Padding( |
| 75 | + padding: const EdgeInsets.only( |
| 76 | + top: 10, left: 10, right: 10, bottom: 10), |
| 77 | + child: Container( |
| 78 | + color: const Color(0xFFFFFF00), |
| 79 | + height: 50.0, |
| 80 | + child: Center( |
| 81 | + child: Text( |
| 82 | + "Category", |
| 83 | + style: TextStyle(fontSize: 21.84), |
| 84 | + ), |
| 85 | + ), |
| 86 | + ), |
| 87 | + ), |
| 88 | + ), |
| 89 | + TableCell( |
| 90 | + child: Padding( |
| 91 | + padding: const EdgeInsets.only( |
| 92 | + top: 10, left: 10, right: 10, bottom: 10), |
| 93 | + child: Container( |
| 94 | + color: const Color(0xFFFFFF00), |
| 95 | + height: 50.0, |
| 96 | + child: Center( |
| 97 | + child: Text( |
| 98 | + "Group", |
| 99 | + style: TextStyle(fontSize: 21.84), |
| 100 | + ), |
| 101 | + ), |
| 102 | + ), |
| 103 | + ), |
| 104 | + ), |
| 105 | + TableCell( |
| 106 | + child: Padding( |
| 107 | + padding: const EdgeInsets.only( |
| 108 | + top: 10, left: 10, right: 10, bottom: 10), |
| 109 | + child: Container( |
| 110 | + color: const Color(0xFFFFFF00), |
| 111 | + height: 50.0, |
| 112 | + child: Center( |
| 113 | + child: Text( |
| 114 | + "Emoji", |
| 115 | + style: TextStyle(fontSize: 21.84), |
| 116 | + ), |
| 117 | + ), |
| 118 | + ), |
| 119 | + ), |
| 120 | + ), |
| 121 | + ], |
| 122 | + ), |
| 123 | + TableRow( |
| 124 | + children: [ |
| 125 | + TableCell( |
| 126 | + child: Padding( |
| 127 | + padding: const EdgeInsets.only( |
| 128 | + top: 10, left: 10, right: 10, bottom: 10), |
| 129 | + child: Center( |
| 130 | + child: Text( |
| 131 | + "dog face", |
| 132 | + style: TextStyle(fontSize: 21.84), |
| 133 | + ), |
| 134 | + ), |
| 135 | + ), |
| 136 | + ), |
| 137 | + TableCell( |
| 138 | + child: Padding( |
| 139 | + padding: const EdgeInsets.only( |
| 140 | + top: 10, left: 10, right: 10, bottom: 10), |
| 141 | + child: Center( |
| 142 | + child: Text( |
| 143 | + "animals and nature", |
| 144 | + style: TextStyle(fontSize: 21.84), |
| 145 | + ), |
| 146 | + ), |
| 147 | + ), |
| 148 | + ), |
| 149 | + TableCell( |
| 150 | + child: Padding( |
| 151 | + padding: const EdgeInsets.only( |
| 152 | + top: 10, left: 10, right: 10, bottom: 10), |
| 153 | + child: Center( |
| 154 | + child: Text( |
| 155 | + "animal mammal", |
| 156 | + style: TextStyle(fontSize: 21.84), |
| 157 | + ), |
| 158 | + ), |
| 159 | + ), |
| 160 | + ), |
| 161 | + TableCell( |
| 162 | + child: Padding( |
| 163 | + padding: const EdgeInsets.only( |
| 164 | + top: 10, left: 10, right: 10, bottom: 10), |
| 165 | + child: Center( |
| 166 | + child: Text( |
| 167 | + "🐶", |
| 168 | + style: TextStyle(fontSize: 30.576), |
| 169 | + ), |
| 170 | + ), |
| 171 | + ), |
| 172 | + ), |
| 173 | + ], |
| 174 | + ), |
| 175 | + TableRow( |
| 176 | + children: [ |
| 177 | + TableCell( |
| 178 | + child: Padding( |
| 179 | + padding: const EdgeInsets.only( |
| 180 | + top: 10, left: 10, right: 10, bottom: 10), |
| 181 | + child: Center( |
| 182 | + child: Text( |
| 183 | + "dog", |
| 184 | + style: TextStyle(fontSize: 21.84), |
| 185 | + ), |
| 186 | + ), |
| 187 | + ), |
| 188 | + ), |
| 189 | + TableCell( |
| 190 | + child: Padding( |
| 191 | + padding: const EdgeInsets.only( |
| 192 | + top: 10, left: 10, right: 10, bottom: 10), |
| 193 | + child: Center( |
| 194 | + child: Text( |
| 195 | + "animals and nature", |
| 196 | + style: TextStyle(fontSize: 21.84), |
| 197 | + ), |
| 198 | + ), |
| 199 | + ), |
| 200 | + ), |
| 201 | + TableCell( |
| 202 | + child: Padding( |
| 203 | + padding: const EdgeInsets.only( |
| 204 | + top: 10, left: 10, right: 10, bottom: 10), |
| 205 | + child: Center( |
| 206 | + child: Text( |
| 207 | + "animal mammal", |
| 208 | + style: TextStyle(fontSize: 21.84), |
| 209 | + ), |
| 210 | + ), |
| 211 | + ), |
| 212 | + ), |
| 213 | + TableCell( |
| 214 | + child: Padding( |
| 215 | + padding: const EdgeInsets.only( |
| 216 | + top: 10, left: 10, right: 10, bottom: 10), |
| 217 | + child: Center( |
| 218 | + child: Text( |
| 219 | + "🐕", |
| 220 | + style: TextStyle(fontSize: 30.576), |
| 221 | + ), |
| 222 | + ), |
| 223 | + ), |
| 224 | + ), |
| 225 | + ], |
| 226 | + ), |
| 227 | + TableRow( |
| 228 | + children: [ |
| 229 | + TableCell( |
| 230 | + child: Padding( |
| 231 | + padding: const EdgeInsets.only( |
| 232 | + top: 10, left: 10, right: 10, bottom: 10), |
| 233 | + child: Center( |
| 234 | + child: Text( |
| 235 | + "hot dog", |
| 236 | + style: TextStyle(fontSize: 21.84), |
| 237 | + ), |
| 238 | + ), |
| 239 | + ), |
| 240 | + ), |
| 241 | + TableCell( |
| 242 | + child: Padding( |
| 243 | + padding: const EdgeInsets.only( |
| 244 | + top: 10, left: 10, right: 10, bottom: 10), |
| 245 | + child: Center( |
| 246 | + child: Text( |
| 247 | + "food and drink", |
| 248 | + style: TextStyle(fontSize: 21.84), |
| 249 | + ), |
| 250 | + ), |
| 251 | + ), |
| 252 | + ), |
| 253 | + TableCell( |
| 254 | + child: Padding( |
| 255 | + padding: const EdgeInsets.only( |
| 256 | + top: 10, left: 10, right: 10, bottom: 10), |
| 257 | + child: Center( |
| 258 | + child: Text( |
| 259 | + "food prepared", |
| 260 | + style: TextStyle(fontSize: 21.84), |
| 261 | + ), |
| 262 | + ), |
| 263 | + ), |
| 264 | + ), |
| 265 | + TableCell( |
| 266 | + child: Padding( |
| 267 | + padding: const EdgeInsets.only( |
| 268 | + top: 10, left: 10, right: 10, bottom: 10), |
| 269 | + child: Center( |
| 270 | + child: Text( |
| 271 | + "🌭", |
| 272 | + style: TextStyle(fontSize: 30.576), |
| 273 | + ), |
| 274 | + ), |
| 275 | + ), |
| 276 | + ), |
| 277 | + ], |
| 278 | + ), |
| 279 | + ], |
| 280 | + ), |
| 281 | + ], |
| 282 | + ), |
| 283 | + ), |
| 284 | + ); |
| 285 | + } |
| 286 | +} |
0 commit comments