@@ -53,7 +53,8 @@ class TasksBuilder extends StatelessWidget {
5353
5454 void saveChanges (
5555 BuildContext context, Modify modify, String id, String newValue) async {
56- TaskwarriorColorTheme tColors = Theme .of (context).extension < TaskwarriorColorTheme > ()! ;
56+ TaskwarriorColorTheme tColors =
57+ Theme .of (context).extension < TaskwarriorColorTheme > ()! ;
5758 var now = DateTime .now ().toUtc ();
5859 modify.save (
5960 modified: () => now,
@@ -110,32 +111,37 @@ class TasksBuilder extends StatelessWidget {
110111 @override
111112 Widget build (BuildContext context) {
112113 // print(taskData);
113- TaskwarriorColorTheme tColors = Theme .of (context).extension < TaskwarriorColorTheme > ()! ;
114+ TaskwarriorColorTheme tColors =
115+ Theme .of (context).extension < TaskwarriorColorTheme > ()! ;
114116 var storageWidget = Get .find <HomeController >();
115117 return Scaffold (
116118 floatingActionButtonLocation:
117119 FloatingActionButtonLocation .miniStartFloat,
118- floatingActionButton: showbtn ? AnimatedOpacity (
119- duration: const Duration (milliseconds: 100 ), //show/hide animation
120- opacity: showbtn ? 1.0 : 0.0 , //set obacity to 1 on visible, or hide
121- child: FloatingActionButton (
122- heroTag: "btn2" ,
123- onPressed: () {
124- scrollController.animateTo (
125- //go to top of scroll
126- 0 , //scroll offset to go
127- duration:
128- const Duration (milliseconds: 500 ), //duration of scroll
129- curve: Curves .fastLinearToSlowEaseIn //scroll type
130- );
131- },
132- backgroundColor: tColors.primaryTextColor,
133- child: Icon (
134- Icons .arrow_upward,
135- color: tColors.secondaryBackgroundColor,
136- ),
137- ),
138- ) : null ,
120+ floatingActionButton: showbtn
121+ ? AnimatedOpacity (
122+ duration:
123+ const Duration (milliseconds: 100 ), //show/hide animation
124+ opacity:
125+ showbtn ? 1.0 : 0.0 , //set obacity to 1 on visible, or hide
126+ child: FloatingActionButton (
127+ heroTag: "btn2" ,
128+ onPressed: () {
129+ scrollController.animateTo (
130+ //go to top of scroll
131+ 0 , //scroll offset to go
132+ duration: const Duration (
133+ milliseconds: 500 ), //duration of scroll
134+ curve: Curves .fastLinearToSlowEaseIn //scroll type
135+ );
136+ },
137+ backgroundColor: tColors.primaryTextColor,
138+ child: Icon (
139+ Icons .arrow_upward,
140+ color: tColors.secondaryBackgroundColor,
141+ ),
142+ ),
143+ )
144+ : null ,
139145 backgroundColor: Colors .transparent,
140146 body: Obx (
141147 () => taskData.isEmpty
@@ -152,8 +158,7 @@ class TasksBuilder extends StatelessWidget {
152158 style: TextStyle (
153159 fontFamily: FontFamily .poppins,
154160 fontSize: TaskWarriorFonts .fontSizeLarge,
155- color: tColors.primaryTextColor
156- ),
161+ color: tColors.primaryTextColor),
157162 // style: GoogleFonts.poppins(
158163 // fontSize: TaskWarriorFonts.fontSizeLarge,
159164 // color: AppSettings.isDarkMode
@@ -193,7 +198,8 @@ class TasksBuilder extends StatelessWidget {
193198 }
194199 },
195200 icon: Icons .done,
196- label: SentenceManager (currentLanguage: selectedLanguage)
201+ label: SentenceManager (
202+ currentLanguage: selectedLanguage)
197203 .sentences
198204 .complete,
199205 backgroundColor: TaskWarriorColors .green,
@@ -222,7 +228,8 @@ class TasksBuilder extends StatelessWidget {
222228 }
223229 },
224230 icon: Icons .delete,
225- label: SentenceManager (currentLanguage: selectedLanguage)
231+ label: SentenceManager (
232+ currentLanguage: selectedLanguage)
226233 .sentences
227234 .delete,
228235 backgroundColor: TaskWarriorColors .red,
0 commit comments