manashejmadi

SDUI Example

Aug 31st, 2025
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 18.82 KB | Source Code | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. void main() {
  4.   runApp(const MyApp());
  5. }
  6.  
  7. class MyApp extends StatelessWidget {
  8.   const MyApp({super.key});
  9.  
  10.   @override
  11.   Widget build(BuildContext context) {
  12.     return MaterialApp(
  13.       debugShowCheckedModeBanner: false,
  14.       home: Scaffold(body: Center(child:SDUIWidget())),
  15.     );
  16.   }
  17. }
  18.  
  19. class SDUIWidget extends StatelessWidget {
  20.   @override
  21.   Widget build(BuildContext context) {
  22.     return Scaffold(
  23.       backgroundColor: const Color(0xFFFFFFFF),
  24.       body: SingleChildScrollView(
  25.         child: Column(
  26.           mainAxisAlignment: MainAxisAlignment.start,
  27.           crossAxisAlignment: CrossAxisAlignment.stretch,
  28.           children: [
  29.             Card(
  30.               color: const Color(0xFFE6F7FF),
  31.               margin: const EdgeInsets.fromLTRB(10, 10, 10, 10),
  32.               elevation: 3,
  33.               child: Column(
  34.                 mainAxisAlignment: MainAxisAlignment.start,
  35.                 crossAxisAlignment: CrossAxisAlignment.start,
  36.                 children: [
  37.                   Padding(
  38.                     padding: const EdgeInsets.fromLTRB(10, 10, 10, 0),
  39.                     child: Text(
  40.                       "Word: flutter",
  41.                       style: TextStyle(
  42.                         fontSize: 20,
  43.                         fontWeight: FontWeight.w700,
  44.                         color: const Color(0xFF00008B),
  45.                       ),
  46.                     ),
  47.                   ),
  48.                   Padding(
  49.                     padding: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  50.                     child: Text(
  51.                       "Phonetic: /ˈflʌtə/",
  52.                       style: TextStyle(
  53.                         fontSize: 16,
  54.                         color: const Color(0xFF777777),
  55.                       ),
  56.                     ),
  57.                   ),
  58.                   Card(
  59.                     color: const Color(0xFF676f8f),
  60.                     margin: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  61.                     elevation: 2,
  62.                     child: Column(
  63.                       mainAxisAlignment: MainAxisAlignment.start,
  64.                       crossAxisAlignment: CrossAxisAlignment.start,
  65.                       children: [
  66.                         Padding(
  67.                           padding: const EdgeInsets.fromLTRB(10, 10, 10, 0),
  68.                           child: Text(
  69.                             "Part of Speech: noun",
  70.                             style: TextStyle(
  71.                               fontWeight: FontWeight.w700,
  72.                               color: const Color(0xFFFFFF00),
  73.                             ),
  74.                           ),
  75.                         ),
  76.                         Column(
  77.                           mainAxisAlignment: MainAxisAlignment.start,
  78.                           crossAxisAlignment: CrossAxisAlignment.stretch,
  79.                           children: [
  80.                             Card(
  81.                               color: const Color(0xFF242838),
  82.                               margin: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  83.                               elevation: 1,
  84.                               child: Column(
  85.                                 mainAxisAlignment: MainAxisAlignment.start,
  86.                                 crossAxisAlignment: CrossAxisAlignment.start,
  87.                                 children: [
  88.                                   Padding(
  89.                                     padding: const EdgeInsets.fromLTRB(10, 10, 10, 0),
  90.                                     child: Text(
  91.                                       "Definition: The act of fluttering; quick and irregular motion.",
  92.                                       style: TextStyle(
  93.                                         color: const Color(0xFFFFFFFF),
  94.                                       ),
  95.                                     ),
  96.                                   ),
  97.                                   Padding(
  98.                                     padding: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  99.                                     child: Text(
  100.                                       "Example: the flutter of a fan",
  101.                                       style: TextStyle(
  102.                                         fontStyle: FontStyle.italic,
  103.                                         color: const Color(0xFFFFFFFF),
  104.                                       ),
  105.                                     ),
  106.                                   ),
  107.                                 ],
  108.                               ),
  109.                             ),
  110.                             Card(
  111.                               color: const Color(0xFF242838),
  112.                               margin: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  113.                               elevation: 1,
  114.                               child: Column(
  115.                                 mainAxisAlignment: MainAxisAlignment.start,
  116.                                 crossAxisAlignment: CrossAxisAlignment.start,
  117.                                 children: [
  118.                                   Padding(
  119.                                     padding: const EdgeInsets.all(10.0),
  120.                                     child: Text(
  121.                                       "Definition: A state of agitation.",
  122.                                       style: TextStyle(
  123.                                         color: const Color(0xFFFFFFFF),
  124.                                       ),
  125.                                     ),
  126.                                   ),
  127.                                 ],
  128.                               ),
  129.                             ),
  130.                             Card(
  131.                               color: const Color(0xFF242838),
  132.                               margin: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  133.                               elevation: 1,
  134.                               child: Column(
  135.                                 mainAxisAlignment: MainAxisAlignment.start,
  136.                                 crossAxisAlignment: CrossAxisAlignment.start,
  137.                                 children: [
  138.                                   Padding(
  139.                                     padding: const EdgeInsets.all(10.0),
  140.                                     child: Text(
  141.                                       "Definition: An abnormal rapid pulsation of the heart.",
  142.                                       style: TextStyle(
  143.                                         color: const Color(0xFFFFFFFF),
  144.                                       ),
  145.                                     ),
  146.                                   ),
  147.                                 ],
  148.                               ),
  149.                             ),
  150.                             Card(
  151.                               color: const Color(0xFF242838),
  152.                               margin: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  153.                               elevation: 1,
  154.                               child: Column(
  155.                                 mainAxisAlignment: MainAxisAlignment.start,
  156.                                 crossAxisAlignment: CrossAxisAlignment.start,
  157.                                 children: [
  158.                                   Padding(
  159.                                     padding: const EdgeInsets.all(10.0),
  160.                                     child: Text(
  161.                                       "Definition: A small bet or risky investment.",
  162.                                       style: TextStyle(
  163.                                         color: const Color(0xFFFFFFFF),
  164.                                       ),
  165.                                     ),
  166.                                   ),
  167.                                 ],
  168.                               ),
  169.                             ),
  170.                             Card(
  171.                               color: const Color(0xFF242838),
  172.                               margin: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  173.                               elevation: 1,
  174.                               child: Column(
  175.                                 mainAxisAlignment: MainAxisAlignment.start,
  176.                                 crossAxisAlignment: CrossAxisAlignment.start,
  177.                                 children: [
  178.                                   Padding(
  179.                                     padding: const EdgeInsets.all(10.0),
  180.                                     child: Text(
  181.                                       "Definition: A hasty game of cards or similar.",
  182.                                       style: TextStyle(
  183.                                         color: const Color(0xFFFFFFFF),
  184.                                       ),
  185.                                     ),
  186.                                   ),
  187.                                 ],
  188.                               ),
  189.                             ),
  190.                             Card(
  191.                               color: const Color(0xFF242838),
  192.                               margin: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  193.                               elevation: 1,
  194.                               child: Column(
  195.                                 mainAxisAlignment: MainAxisAlignment.start,
  196.                                 crossAxisAlignment: CrossAxisAlignment.start,
  197.                                 children: [
  198.                                   Padding(
  199.                                     padding: const EdgeInsets.all(10.0),
  200.                                     child: Text(
  201.                                       "Definition: (audio) The rapid variation of signal parameters, such as amplitude, phase, and frequency.",
  202.                                       style: TextStyle(
  203.                                         color: const Color(0xFFFFFFFF),
  204.                                       ),
  205.                                     ),
  206.                                   ),
  207.                                 ],
  208.                               ),
  209.                             ),
  210.                           ],
  211.                         ),
  212.                       ],
  213.                     ),
  214.                   ),
  215.                   Card(
  216.                     color: const Color(0xFF676f8f),
  217.                     margin: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  218.                     elevation: 2,
  219.                     child: Column(
  220.                       mainAxisAlignment: MainAxisAlignment.start,
  221.                       crossAxisAlignment: CrossAxisAlignment.start,
  222.                       children: [
  223.                         Padding(
  224.                           padding: const EdgeInsets.fromLTRB(10, 10, 10, 0),
  225.                           child: Text(
  226.                             "Part of Speech: verb",
  227.                             style: TextStyle(
  228.                               fontWeight: FontWeight.w700,
  229.                               color: const Color(0xFFFFFF00),
  230.                             ),
  231.                           ),
  232.                         ),
  233.                         Column(
  234.                           mainAxisAlignment: MainAxisAlignment.start,
  235.                           crossAxisAlignment: CrossAxisAlignment.stretch,
  236.                           children: [
  237.                             Card(
  238.                               color: const Color(0xFF242838),
  239.                               margin: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  240.                               elevation: 1,
  241.                               child: Column(
  242.                                 mainAxisAlignment: MainAxisAlignment.start,
  243.                                 crossAxisAlignment: CrossAxisAlignment.start,
  244.                                 children: [
  245.                                   Padding(
  246.                                     padding: const EdgeInsets.fromLTRB(10, 10, 10, 0),
  247.                                     child: Text(
  248.                                       "Definition: To flap or wave quickly but irregularly.",
  249.                                       style: TextStyle(
  250.                                         color: const Color(0xFFFFFFFF),
  251.                                       ),
  252.                                     ),
  253.                                   ),
  254.                                   Padding(
  255.                                     padding: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  256.                                     child: Text(
  257.                                       "Example: flags fluttering in the wind",
  258.                                       style: TextStyle(
  259.                                         fontStyle: FontStyle.italic,
  260.                                         color: const Color(0xFFFFFFFF),
  261.                                       ),
  262.                                     ),
  263.                                   ),
  264.                                 ],
  265.                               ),
  266.                             ),
  267.                             Card(
  268.                               color: const Color(0xFF242838),
  269.                               margin: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  270.                               elevation: 1,
  271.                               child: Column(
  272.                                 mainAxisAlignment: MainAxisAlignment.start,
  273.                                 crossAxisAlignment: CrossAxisAlignment.start,
  274.                                 children: [
  275.                                   Padding(
  276.                                     padding: const EdgeInsets.all(10.0),
  277.                                     child: Text(
  278.                                       "Definition: Of a winged animal: to flap the wings without flying; to fly with a light flapping of the wings.",
  279.                                       style: TextStyle(
  280.                                         color: const Color(0xFFFFFFFF),
  281.                                       ),
  282.                                     ),
  283.                                   ),
  284.                                 ],
  285.                               ),
  286.                             ),
  287.                             Card(
  288.                               color: const Color(0xFF242838),
  289.                               margin: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  290.                               elevation: 1,
  291.                               child: Column(
  292.                                 mainAxisAlignment: MainAxisAlignment.start,
  293.                                 crossAxisAlignment: CrossAxisAlignment.start,
  294.                                 children: [
  295.                                   Padding(
  296.                                     padding: const EdgeInsets.fromLTRB(10, 10, 10, 0),
  297.                                     child: Text(
  298.                                       "Definition: To cause something to flap.",
  299.                                       style: TextStyle(
  300.                                         color: const Color(0xFFFFFFFF),
  301.                                       ),
  302.                                     ),
  303.                                   ),
  304.                                   Padding(
  305.                                     padding: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  306.                                     child: Text(
  307.                                       "Example: A bird flutters its wings.",
  308.                                       style: TextStyle(
  309.                                         fontStyle: FontStyle.italic,
  310.                                         color: const Color(0xFFFFFFFF),
  311.                                       ),
  312.                                     ),
  313.                                   ),
  314.                                 ],
  315.                               ),
  316.                             ),
  317.                             Card(
  318.                               color: const Color(0xFF242838),
  319.                               margin: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  320.                               elevation: 1,
  321.                               child: Column(
  322.                                 mainAxisAlignment: MainAxisAlignment.start,
  323.                                 crossAxisAlignment: CrossAxisAlignment.start,
  324.                                 children: [
  325.                                   Padding(
  326.                                     padding: const EdgeInsets.all(10.0),
  327.                                     child: Text(
  328.                                       "Definition: To drive into disorder; to throw into confusion.",
  329.                                       style: TextStyle(
  330.                                         color: const Color(0xFFFFFFFF),
  331.                                       ),
  332.                                     ),
  333.                                   ),
  334.                                 ],
  335.                               ),
  336.                             ),
  337.                             Card(
  338.                               color: const Color(0xFF242838),
  339.                               margin: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  340.                               elevation: 1,
  341.                               child: Column(
  342.                                 mainAxisAlignment: MainAxisAlignment.start,
  343.                                 crossAxisAlignment: CrossAxisAlignment.start,
  344.                                 children: [
  345.                                   Padding(
  346.                                     padding: const EdgeInsets.all(10.0),
  347.                                     child: Text(
  348.                                       "Definition: To be in a state of agitation or uncertainty.",
  349.                                       style: TextStyle(
  350.                                         color: const Color(0xFFFFFFFF),
  351.                                       ),
  352.                                     ),
  353.                                   ),
  354.                                 ],
  355.                               ),
  356.                             ),
  357.                             Card(
  358.                               color: const Color(0xFF242838),
  359.                               margin: const EdgeInsets.fromLTRB(10, 5, 10, 10),
  360.                               elevation: 1,
  361.                               child: Column(
  362.                                 mainAxisAlignment: MainAxisAlignment.start,
  363.                                 crossAxisAlignment: CrossAxisAlignment.start,
  364.                                 children: [
  365.                                   Padding(
  366.                                     padding: const EdgeInsets.all(10.0),
  367.                                     child: Text(
  368.                                       "Definition: To be frivolous.",
  369.                                       style: TextStyle(
  370.                                         color: const Color(0xFFFFFFFF),
  371.                                       ),
  372.                                     ),
  373.                                   ),
  374.                                 ],
  375.                               ),
  376.                             ),
  377.                           ],
  378.                         ),
  379.                       ],
  380.                     ),
  381.                   ),
  382.                 ],
  383.               ),
  384.             ),
  385.           ],
  386.         ),
  387.       ),
  388.     );
  389.   }
  390. }
  391.  
Advertisement
Add Comment
Please, Sign In to add comment