forked from firka/student-legacy
cry about margin
This commit is contained in:
parent
561b2e4b53
commit
a5f924ae77
@ -33,7 +33,7 @@ class StatusBarState extends State<StatusBar> {
|
|||||||
children: [
|
children: [
|
||||||
// Background
|
// Background
|
||||||
AnimatedContainer(
|
AnimatedContainer(
|
||||||
margin: const EdgeInsets.only(left: 6.0, right: 6.0, top: 40.0),
|
margin: const EdgeInsets.only(left: 16.0, right: 16.0, top: 40.0),
|
||||||
duration: const Duration(milliseconds: 250),
|
duration: const Duration(milliseconds: 250),
|
||||||
curve: Curves.easeInOut,
|
curve: Curves.easeInOut,
|
||||||
height: currentStatus != null ? 4.0 : 0,
|
height: currentStatus != null ? 4.0 : 0,
|
||||||
@ -49,7 +49,7 @@ class StatusBarState extends State<StatusBar> {
|
|||||||
// Progress bar
|
// Progress bar
|
||||||
if (currentStatus == Status.syncing)
|
if (currentStatus == Status.syncing)
|
||||||
Container(
|
Container(
|
||||||
margin: const EdgeInsets.only(left: 6.0, right: 6.0, top: 40.0),
|
margin: const EdgeInsets.only(left: 16.0, right: 16.0, top: 40.0),
|
||||||
alignment: Alignment.topLeft,
|
alignment: Alignment.topLeft,
|
||||||
child: AnimatedContainer(
|
child: AnimatedContainer(
|
||||||
height: currentStatus != null ? 4.0 : 0,
|
height: currentStatus != null ? 4.0 : 0,
|
||||||
@ -57,7 +57,7 @@ class StatusBarState extends State<StatusBar> {
|
|||||||
curve: Curves.easeInOut,
|
curve: Curves.easeInOut,
|
||||||
width: MediaQuery.of(context).size.width *
|
width: MediaQuery.of(context).size.width *
|
||||||
statusProvider.progress -
|
statusProvider.progress -
|
||||||
16.0,
|
36.0,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color:
|
color:
|
||||||
Theme.of(context).colorScheme.secondary.withOpacity(0.8),
|
Theme.of(context).colorScheme.secondary.withOpacity(0.8),
|
||||||
@ -80,14 +80,14 @@ class StatusBarState extends State<StatusBar> {
|
|||||||
// pct
|
// pct
|
||||||
if (currentStatus == Status.syncing)
|
if (currentStatus == Status.syncing)
|
||||||
Container(
|
Container(
|
||||||
margin: const EdgeInsets.only(left: 6.0, right: 6.0, top: 34.0),
|
margin: const EdgeInsets.only(left: 16.0, right: 16.0, top: 34.0),
|
||||||
alignment: Alignment.topLeft,
|
alignment: Alignment.topLeft,
|
||||||
child: AnimatedContainer(
|
child: AnimatedContainer(
|
||||||
duration: const Duration(milliseconds: 250),
|
duration: const Duration(milliseconds: 250),
|
||||||
curve: Curves.easeInOut,
|
curve: Curves.easeInOut,
|
||||||
width: MediaQuery.of(context).size.width *
|
width: MediaQuery.of(context).size.width *
|
||||||
statusProvider.progress -
|
statusProvider.progress -
|
||||||
16.0,
|
36.0,
|
||||||
alignment: Alignment.centerRight,
|
alignment: Alignment.centerRight,
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user