xxxxxxxxxx
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
Color hexColor = const Color(0xFF00FF00); // Replace 0xFF00FF00 with your desired hex color value
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Hex Color Demo'),
),
body: Container(
color: hexColor,
child: Center(
child: Text(
'Hello, Flutter!',
style: TextStyle(color: Colors.white),
),
),
),
),
);
}
}