Skip to content

Instantly share code, notes, and snippets.

@ggmada
Created February 7, 2025 05:33
Show Gist options
  • Save ggmada/20696bb9263d6b0be2fe31422573c1dd to your computer and use it in GitHub Desktop.
Save ggmada/20696bb9263d6b0be2fe31422573c1dd to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(
title: Text(
'лаб',
style: TextStyle(
color: const Color.fromARGB(255, 247, 0, 255),
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
backgroundColor: Colors.teal,
centerTitle: true,
),
backgroundColor: Colors.grey[300],
body: Padding(
padding: EdgeInsets.all(16.0),
child: Column(
children: [
// Первый контейнер
Container(
padding: EdgeInsets.all(16),
decoration: BoxDecoration(
color: Colors.blue,
borderRadius: BorderRadius.circular(12),
boxShadow: [
BoxShadow(
color: const Color.fromARGB(255, 247, 0, 255).withOpacity(0.2),
offset: Offset(2, 2),
blurRadius: 6,
),
],
),
child: Center(
child: Text(
'Welcome to my profile!',
style: TextStyle(
color: const Color.fromARGB(255, 253, 0, 232),
fontSize: 18,
fontWeight: FontWeight.bold,
),
textAlign: TextAlign.center,
),
),
),
SizedBox(height: 16),
// Второй контейнер
Container(
padding: EdgeInsets.symmetric(vertical: 12, horizontal: 20),
decoration: BoxDecoration(
color: Colors.green,
borderRadius: BorderRadius.circular(8),
border: Border.all(color: Colors.white, width: 2),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'Left Text:born 2005 ',
style: TextStyle(
color: const Color.fromARGB(255, 255, 0, 200),
fontSize: 16,
),
),
Text(
'Right text:Nazarali study in the UIB University on third course',
style: TextStyle(
color: const Color.fromARGB(255, 253, 0, 232),
fontSize: 16,
),
),
],
),
),
],
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment