-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtopic.dart
42 lines (39 loc) · 1.06 KB
/
topic.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
Topic(topic_name , size) {
return Container(
margin: EdgeInsets.only(top: 20 , bottom: 15 , left: 10 , right: 20),
height: 100,
// width: 300,
padding: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(40),
gradient: LinearGradient(
end: Alignment.topRight,
stops: [
0.1,
0.4,
0.6,
0.9
] ,
begin: Alignment.bottomLeft,
colors: [
//Colors.deepOrange,
//Colors.red[800],
Colors.indigo[900],
Colors.black,
//Colors.lime[600],
//Color(0xFF42A5F5),
Colors.green[900],
Colors.indigo[900],
//Colors.amber
]
) ,
),
child: Center(
child: Text(topic_name,
style: TextStyle(fontSize: size , color: Colors.white ,fontWeight: FontWeight.bold)),
),
);
}