fix oauth
This commit is contained in:
		
							parent
							
								
									30de8189bc
								
							
						
					
					
						commit
						532788e9e6
					
				
					 6 changed files with 110 additions and 17 deletions
				
			
		|  | @ -1,7 +1,7 @@ | |||
| import 'package:flutter/material.dart'; | ||||
| import 'package:localization/localization.dart'; | ||||
| import '../../business_logic/settings.dart' as settings; | ||||
| import 'package:slothmu/partials/thread.dart'; | ||||
| import '../../business_logic/timeline/timeline.dart' as tl; | ||||
| 
 | ||||
| class Timeline extends StatefulWidget { | ||||
|   const Timeline({Key? key}) : super(key: key); | ||||
|  | @ -29,7 +29,9 @@ class _TimelineState extends State<Timeline> { | |||
| 
 | ||||
|   Future fetchMore() async { | ||||
|     loading = true; | ||||
|     final token = await settings.loadAuthCode(); | ||||
|     final response = await tl.getTimelineFromServer(); | ||||
|     print(response.body); | ||||
|     print(response.statusCode); | ||||
|     setState(() { | ||||
|       if (children.isNotEmpty) { | ||||
|         children.removeAt(children.length - 1); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue