You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
2.5 KiB
93 lines
2.5 KiB
import 'package:flutter/material.dart';
|
|
import 'package:teso/util/consts.dart';
|
|
|
|
buildEmpty(BuildContext context, Function share) {
|
|
return SingleChildScrollView(
|
|
scrollDirection: Axis.vertical,
|
|
child: Container(
|
|
width: MediaQuery.of(context).size.width,
|
|
height: MediaQuery.of(context).size.height + 40,
|
|
child: Column(
|
|
children: [
|
|
SizedBox(
|
|
height: 50,
|
|
),
|
|
Container(
|
|
width: 100,
|
|
height: 100,
|
|
padding: EdgeInsets.all(15),
|
|
decoration: BoxDecoration(
|
|
shape: BoxShape.circle,
|
|
border: Border.all(
|
|
color: Theme.of(context).primaryColorLight,
|
|
width: 1,
|
|
),
|
|
),
|
|
child: ImageIcon(
|
|
AssetImage("assets/images/rawLogo.png"),
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 10,
|
|
),
|
|
Container(
|
|
width: MediaQuery.of(context).size.width,
|
|
margin: EdgeInsets.only(
|
|
top: 10,
|
|
),
|
|
child: Center(
|
|
child: Text(
|
|
"Share contents",
|
|
style: TextStyle(
|
|
fontWeight: FontWeight.bold,
|
|
fontSize: 23,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 10,
|
|
),
|
|
Container(
|
|
width: MediaQuery.of(context).size.width * 0.5,
|
|
margin: EdgeInsets.only(
|
|
top: 10,
|
|
),
|
|
child: Center(
|
|
child: Text(
|
|
"When you share videos they'll appear on your profile.",
|
|
textAlign: TextAlign.center,
|
|
style: TextStyle(
|
|
fontSize: 13,
|
|
color: Colors.grey,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 10,
|
|
),
|
|
Container(
|
|
width: MediaQuery.of(context).size.width * 0.5,
|
|
margin: EdgeInsets.only(
|
|
top: 10,
|
|
),
|
|
child: Center(
|
|
child: GestureDetector(
|
|
onTap: () => share(context),
|
|
child: Text(
|
|
"Share your first content",
|
|
textAlign: TextAlign.center,
|
|
style: TextStyle(
|
|
fontSize: 13,
|
|
color: tesoBlue,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|